CentOS 8
Sponsored Link

Podman : Use Docker Command2019/10/11

 
Install a script named [docker] that emulates the Docker CLI by executes podman commands.
[1] Install Podman-docker package.
[root@dlp ~]#
dnf -y install podman-docker
# [docker] command is installed

[root@dlp ~]#
ll /usr/bin/docker

-rwxr-xr-x. 1 root root 163 Feb  2 16:09 /usr/bin/docker

# emulates the Docker CLI by executes podman

[root@dlp ~]#
cat /usr/bin/docker

#!/bin/sh
[ -f /etc/containers/nodocker ] || \
echo "Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg." >&2
exec /usr/bin/podman "$@"

# test [docker] command

[root@dlp ~]#
docker images

Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
REPOSITORY                  TAG     IMAGE ID      CREATED         SIZE
srv.world/centos-nginx      latest  3e52e21dc11c  42 minutes ago  298 MB
srv.world/centos-httpd      latest  10a26af7ba4d  17 hours ago    322 MB
docker.io/library/mariadb   latest  e27cf5bc24fe  2 weeks ago     407 MB
docker.io/library/registry  2       5c4008a25e05  3 weeks ago     26.8 MB
registry.centos.org/centos  latest  2f3766df23b6  3 months ago    217 MB
dlp.srv.world:5000/centos   latest  2f3766df23b6  3 months ago    217 MB
k8s.gcr.io/pause            3.2     80d28bedfe5d  13 months ago   688 kB
Matched Content