3

I know that in Docker if you want to change the runtime you go to: /etc/docker/daemon.json

And modify:

{
    "runtimes": {
        "runnc": {
            "path": "/usr/sbin/runnc"
        }
    }
}

But how do I do this with Podman (or just add runtime)?

OCIRuntime: package:

runc: /usr/sbin/runc

path: /usr/sbin/runc

3

You can find the runtime_path defaults in /usr/share/containers/libpod.conf and overwrite them in /etc/containers/libpod.conf (on EL8, check man podman to find correct place for Your setup).
As there is no daemon this is the conifguration used for all the libpod commands that need to know that.


Edit: as stated by @jnbdz the probably more important default location: in rootless mode $HOME/.config/containers/libpod.conf

3
  • I found mine here : ~/.config/containers/libpod.conf – jnbdz Oct 27 '19 at 22:15
  • 1
    Ah yes, I forgot. That one is also a default, for users settings. – EOhm Oct 27 '19 at 22:37
  • I think this answer is old. Can't find the file libpod.conf in any of the locations mentioned. – Rahul Bali Dec 14 '20 at 7:15
2

Container engines will read containers.conf files in up to three locations in the following order:

  1. /usr/share/containers/containers.conf
  2. /etc/containers/containers.conf
  3. $HOME/.config/containers/containers.conf (Rootless containers ONLY)

Items specified in the latter containers.conf, if they exist, override the previous containers.conf settings, or the default settings.

Found this written at top of the /usr/share/containers/containers.conf

1
  • This is the right answer. You have to set the option under the [engine] table: runtime ="crun" – smac89 Mar 23 at 3:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.