<p>Has anyone been able to get minikube to work with --driver=podman?</p>

<p>I have tried Fedora 30,31, CentOS7,8, RHEL7,8 all with the same results.  </p>

<pre><code># # minikube start --driver=podman --container-runtime=cri-o --cri-socket=/var/run/crio/crio.sock
😄  minikube v1.9.2 on Fedora 30 (vbox/amd64)
✨  Using the podman (experimental) driver based on user configuration
👍  Starting control plane node m01 in cluster minikube
🚜  Pulling base image ...
E0409 16:50:17.654306   30363 cache.go:114] Error downloading kic artifacts:  error loading image: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
🤦  StartHost failed, but will try again: creating host: create host timed out in 120.000000 seconds
🔄  Restarting existing podman container for "minikube" ...

💣  Failed to start podman container. "minikube start" may fix it.: driver start: get kic state: "podman inspect -f {{.State.Status}} minikube" failed: exit status 125: Error: error getting image "minikube": unable to find a name and tag match for minikube in repotags: no such image


😿  minikube is exiting due to an error. If the above message is not useful, open an issue:
👉  https://github.com/kubernetes/minikube/issues/new/choose
</code></pre>

<p>It feels like cri-o needs to be installed and running.  I have done that but still get the same results.</p>

<p>Update 1:</p>

<pre><code># minikube start --driver=podman --container-runtime=cri-o --cri-socket=/var/run/crio/crio.sock --network-plugin=cni --enable-default-cni --v=1
😄  minikube v1.9.2 on Fedora 30
✨  Using the podman (experimental) driver based on user configuration
👍  Starting control plane node m01 in cluster minikube
🚜  Pulling base image ...
E0415 12:38:49.764297   24903 cache.go:114] Error downloading kic artifacts:  error loading image: Error response from daemon: 404 page not found
🤦  StartHost failed, but will try again: creating host: create: creating: create kic node: create container: failed args: [run --cgroup-manager cgroupfs -d -t --privileged --security-opt seccomp=unconfined --tmpfs /tmp --tmpfs /run -v /lib/modules:/lib/modules:ro --hostname minikube --name minikube --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --label role.minikube.sigs.k8s.io= --label mode.minikube.sigs.k8s.io=minikube --volume /root/.minikube/machines/minikube/var:/var:exec --expose 8443 --publish=127.0.0.1::8443 --publish=127.0.0.1::22 --publish=127.0.0.1::2376 gcr.io/k8s-minikube/kicbase:v0.0.8] output: Error: invalid option type "exec"
: exit status 125
🔄  Restarting existing podman container for "minikube" ...

💣  Failed to start podman container. "minikube start" may fix it.: driver start: get kic state: "podman inspect -f {{.State.Status}} minikube" failed: exit status 125: Error: error getting image "minikube": unable to find a name and tag match for minikube in repotags: no such image


😿  minikube is exiting due to an error. If the above message is not useful, open an issue:
👉  https://github.com/kubernetes/minikube/issues/new/choose
</code></pre>

<p>I'm happy to flip over to Fedora 31 or CentOS if needed.</p>

<p>Update 2: Set selinux to permissive with same failure.</p>

<p>Update 3: Per suggestion from @vbatts the minikube start cmd is pretty close to working.  It seems crio sock lives in /var/run/crio/ so I updated that path.  Now I'm getting the following...</p>

<pre><code>[root@test ~]# minikube start     --network-plugin=cni     --enable-default-cni     --extra-config=kubelet.container-runtime=remote     --extra-config=kubelet.container-runtime-endpoint=/var/run/crio/crio.sock     --extra-config=kubelet.image-service-endpoint=/var/run/crio/crio.sock     --driver=podman
😄  minikube v1.9.2 on Fedora 30
✨  Using the podman (experimental) driver based on user configuration
👍  Starting control plane node m01 in cluster minikube
🚜  Pulling base image ...
💾  Downloading Kubernetes v1.18.0 preload ...
    &gt; preloaded-images-k8s-v2-v1.18.0-docker-overlay2-amd64.tar.lz4: 542.91 MiB
E0416 09:25:47.539842    1632 cache.go:114] Error downloading kic artifacts:  error loading image: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
🐳  Preparing Kubernetes v1.18.0 on Docker 19.03.2 ...
    ▪ kubelet.container-runtime=remote
    ▪ kubelet.container-runtime-endpoint=/var/run/crio/crio.sock
    ▪ kubelet.image-service-endpoint=/var/run/crio/crio.sock
🌟  Enabling addons: default-storageclass, storage-provisioner
🏄  Done! kubectl is now configured to use "minikube"

</code></pre>

<p>And now these cmds hang ....</p>

<pre><code>[root@test ~]# kubectl get nodes
^C

[root@test ~]# minikube status
E0416 09:30:30.741722   10795 api_server.go:169] unable to get freezer state: cat: /sys/fs/cgroup/freezer/libpod_parent/libpod-16c8b830eb8e4cb0baa576e98d8343fdab1dacea8db4a6a6d84bbb8fbc7c0f92/kubepods/burstable/pod7dd7509c8b924aaaebd697cbbc2aff89/aa2abeea32b056907d33590baf5fc0c213b718cc8b16b548f251326675f32337/freezer.state: No such file or directory
Error: non zero exit code: 1: OCI runtime error
^C
</code></pre>

<p>Firstly make sure that you configured <a href="https://github.com/kubernetes/minikube" rel="nofollow noreferrer">Minikube</a> properly: <a href="https://asciinema.org/a/142924" rel="nofollow noreferrer">minikube-configuration</a>.</p>

<p>You have to specify network plugin and enable it, also it is important to add image-service endpoint  for runtime: <code>/var/run/crio/crio.sock</code>:</p>

<pre><code>$ sudo minikube start \
    --network-plugin=cni \
    --enable-default-cni \
    --extra-config=kubelet.container-runtime=remote \
    --extra-config=kubelet.container-runtime-endpoint=/var/run/crio.sock \
    --extra-config=kubelet.image-service-endpoint=/var/run/crio.sock \
    --driver=podman
</code></pre>

<p>Please take a look: <a href="https://developers.redhat.com/blog/2019/01/29/podman-kubernetes-yaml/" rel="nofollow noreferrer">minikube-crio-podman</a>, <a href="https://books.google.pl/books?id=0JmZDwAAQBAJ&amp;pg=PA296&amp;lpg=PA296&amp;dq=crio+minikube+start&amp;source=bl&amp;ots=sxbiWGdCZE&amp;sig=ACfU3U3nA4G-w_A24nb1WU6S2hLdO9RX2A&amp;hl=en&amp;sa=X&amp;ved=2ahUKEwi8hP_51ezoAhXL_KQKHS8fCtkQ6AEwB3oECAwQOA#v=onepage&amp;q=crio%20minikube%20start&amp;f=false" rel="nofollow noreferrer">crio-minikube</a>.</p>
