Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow running podman as experimental driver #12579

Merged
merged 2 commits into from
Sep 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/minikube/driver/driver_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var supportedDrivers = func() []string {
// on darwin/arm64 only docker and ssh are supported yet
return []string{
Docker,
Podman,
SSH,
}
}
Expand All @@ -37,6 +38,7 @@ var supportedDrivers = func() []string {
HyperKit,
VMware,
Docker,
Podman,
SSH,
}
}()
Expand Down
1 change: 1 addition & 0 deletions pkg/minikube/driver/driver_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ var supportedDrivers = []string{
HyperV,
VMware,
Docker,
Podman,
SSH,
}

Expand Down
12 changes: 10 additions & 2 deletions site/content/en/docs/drivers/podman.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ The podman driver is an alternative container runtime to the [Docker]({{< ref "/

## Requirements

- Linux operating system
- Install [podman](https://podman.io/getting-started/installation.html)

{{% readfile file="/docs/drivers/includes/podman_usage.inc" %}}

## Known Issues

- Podman requirements passwordless running of sudo. If you run into an error about sudo, do the following:
- On Linux, Podman requires passwordless running of sudo. If you run into an error about sudo, do the following:

```shell
$ sudo visudo
Expand All @@ -35,6 +34,15 @@ Be sure this text is *after* `#includedir /etc/sudoers.d`. To confirm it worked,
sudo -k -n podman version
```

- On all other operating systems, make sure to create and start the virtual machine that is needed for Podman.

```shell
podman machine init --cpus 2 --memory 2048 --disk-size 20
podman machine start
podman system connection default podman-machine-default-root
podman info
```

## Troubleshooting

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