Verifying that your tools are using Podman
When you have configured your host to use Podman rather then Docker, consider verifying your setup works as intended.
Prerequisites
- Docker service is stopped, or not installed.
- Saved containers are imported to Podman
- The
DOCKER_HOST
environment variable is set - On macOS, the
podman-mac-helper
service is running - Podman is emulating Docker CLI
Procedure
The Docker socket replies successfully for listing all containers:
- Windows
- macOS
- Linux
$ curl --unix-socket npipe:////./pipe/docker_engine "http:/v1.41/containers/json?all=true"
$ curl --unix-socket /var/run/docker.sock "http:/v1.41/containers/json?all=true"
$ curl --unix-socket /var/run/docker.sock "http:/v1.41/containers/json?all=true"
Podman commands run successfully when redirected to the Docker socket:
- Windows
- macOS
- Linux
$ CONTAINER_HOST=npipe:////./pipe/docker_engine podman ps
$ CONTAINER_HOST=/var/run/docker.sock podman ps
$ CONTAINER_HOST=/var/run/docker.sock podman ps