Podman : Use Docker Command2023/06/21 |
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 163 Nov 13 2022 /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 e5a651fe23a6 8 minutes ago 157 MB srv.world/debian-nginx latest e2938e55cf7c 38 minutes ago 158 MB srv.world/debian-apache2 latest f047c6f28c56 45 minutes ago 260 MB docker.io/library/registry 2 4bb5ea59f8e0 5 days ago 24.6 MB docker.io/library/debian latest 49081a1edb0b 8 days ago 121 MB |
Sponsored Link |