Search code examples
dockerpodman

Can podman connect to a remote docker host by setting $DOCKER_HOST?


I know that podman is a daemonless container engine, which is a plus.
But if I need to start a container on a remote host running docker server, is this possible through podman?

e.g. Having placed the corresponding certificates into ~/.docker/ would the following run hello-world on the remote server, as docker command does?

export DOCKER_HOST=tcp://remote-docker-server:2376;
export DOCKER_TLS_VERIFY=1;
podman run hello-world

doc: [..]Simply put: alias docker=podman[..]

Since podman team proposes aliasing docker command to podman, I need to know whether I will still be able to use the docker command as before.


Solution

  • Podman does not have any support for the Docker API. It cannot connect to Docker on either the local host or a remote host. If you need to start a container on a remote host, you can:

    ssh remotehost podman run ...