Podman : Use Docker Command2020/11/06 |
Install a script named [docker] that emulates the Docker CLI by executes podman commands.
|
|
[1] | Install Podman-docker. |
[root@dlp ~]#
dnf -y install podman-docker # [docker] command is installed [root@dlp ~]# ll /usr/bin/docker -rwxr-xr-x. 1 root root 167 Oct 8 01:24 /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/nginx-server latest 5c98ec35fda6 6 hours ago 419 MB srv.world/fedora-httpd latest 56430ecb044d 6 hours ago 439 MB registry.fedoraproject.org/fedora latest 79fd58dc7611 9 days ago 181 MB docker.io/library/nginx latest f35646e83998 3 weeks ago 137 MB registry.fedoraproject.org/f31/mariadb latest 7dae2805f59d 7 months ago 487 MB k8s.gcr.io/pause 3.2 80d28bedfe5d 8 months ago 688 kB |
Sponsored Link |