Podman : Use Docker Command |
Install a script named [docker] that emulates the Docker CLI by executes podman commands. | |
| [1] | Install Podman-docker package. |
root@dlp:~# apt -y install podman-docker # [docker] command is installed root@dlp:~# ll /usr/bin/docker -rwxr-xr-x 1 root root 228 Jul 26 06:23 /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/iproute latest 77debccd9811 6 minutes ago 156 MB srv.world/debian-nginx latest 33b7b5b10b13 34 minutes ago 157 MB srv.world/debian-apache2 latest a0aca892bf29 42 minutes ago 234 MB dlp.srv.world:5000/debian my-registry 047bd8d81940 11 days ago 124 MB docker.io/library/debian latest 047bd8d81940 11 days ago 124 MB |
No comments:
Post a Comment