Podman : Use Docker Command2022/03/14 |
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 167 Feb 25 13:56 /usr/bin/docker # emulates the Docker CLI by executes podman [root@dlp ~]# cat /usr/bin/docker #!/usr/bin/sh [ -e /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 762eb0a249a5 47 minutes ago 247 MB srv.world/centos-httpd latest 0c6c507d6e95 54 minutes ago 253 MB quay.io/centos/centos stream9 44ffcc4acee8 3 days ago 152 MB docker.io/library/registry 2 8948869ebfee 5 days ago 24.7 MB |
Sponsored Link |