Podman : Use Docker Command2021/05/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 May 5 17:08 /usr/bin/docker # emulates the Docker CLI by executes podman [root@dlp ~]# cat /usr/bin/docker #!/usr/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 registry.fedoraproject.org/fedora latest 5f05951e2065 2 weeks ago 187 MB |
Sponsored Link |