Podman : Use Docker Command2020/05/11 |
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 Apr 29 22:30 /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 dlp.srv.world:5000/nginx_server latest f0bde03754eb About an hour ago 406 MB srv.world/nginx_server latest f0bde03754eb About an hour ago 406 MB srv.world/fedora_httpd latest a461b4b0b704 About an hour ago 452 MB registry.fedoraproject.org/fedora latest d81c91deec0d 11 days ago 208 MB docker.io/library/mariadb latest b6184b68d1fd 2 weeks ago 363 MB k8s.gcr.io/pause 3.2 80d28bedfe5d 2 months ago 688 kB docker.io/library/registry 2 708bc6af7e5e 3 months ago 26.3 MB |
Sponsored Link |
|