Podman : Use Docker Command2025/01/21 |
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 238 Dec 2 09:00 /usr/bin/docker # emulates the Docker CLI by executes podman [root@dlp ~]# cat /usr/bin/docker #!/usr/bin/sh [ -e /etc/containers/nodocker ] || [ -e "\${XDG_CONFIG_HOME-\/builddir/.config}/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/iproute latest dfa2b401b86c 8 minutes ago 346 MB srv.world/centos-nginx latest d64d577f9a9e 5 hours ago 347 MB srv.world/centos-httpd latest ff3843182253 5 hours ago 354 MB quay.io/centos/centos stream10 1ef274445e32 7 days ago 311 MB docker.io/library/registry latest 282bd1664cf1 15 months ago 26 MB |
Sponsored Link |
|