Podman : Use Docker Command2024/05/03 |
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 Apr 17 09:00 /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 srv.world/fedora-nginx latest cf5af4219b13 32 minutes ago 340 MB srv.world/fedora-httpd latest 9d6d273370e2 44 minutes ago 343 MB dlp.srv.world:5000/fedora my-registry 19f52f582331 About an hour ago 229 MB registry.fedoraproject.org/fedora latest 19f52f582331 About an hour ago 229 MB |
Sponsored Link |