podman

Overview

The podman driver is an alternative container runtime to the Docker driver.

Requirements

Experimental

This is an experimental driver. Please use it only for experimental reasons until it has reached maturity. For a more reliable minikube experience, use a non-experimental driver, like Docker.

Usage

It’s recommended to run minikube with the podman driver and CRI-O container runtime:

  1. minikube start --driver=podman --container-runtime=cri-o

Alternatively, start minikube with the podman driver only:

  1. minikube start --driver=podman

To make podman the default driver:

  1. minikube config set driver podman

Known Issues

  • On Linux, Podman requires passwordless running of sudo. If you run into an error about sudo, do the following:
  1. $ sudo visudo

Then append the following to the section at the very bottom of the file where username is your user account.

  1. username ALL=(ALL) NOPASSWD: /usr/bin/podman

Be sure this text is after #includedir /etc/sudoers.d. To confirm it worked, try:

  1. sudo -k -n podman version
  • On all other operating systems, make sure to create and start the virtual machine that is needed for Podman.
  1. podman machine init --cpus 2 --memory 2048 --disk-size 20
  2. podman machine start
  3. podman system connection default podman-machine-default-root
  4. podman info

Troubleshooting

  • Run minikube start --alsologtostderr -v=7 to debug errors and crashes

Last modified September 26, 2021: Change podman to using the VM root socket (4b2ff8c79)