Fedora 35
Sponsored Link

Podman : Use Docker Command2021/11/11

 
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 Oct 20 23:40 /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      f27df6dc0cf8  34 minutes ago  391 MB
srv.world/fedora-httpd             latest      3b282c5eda58  39 minutes ago  418 MB
registry.fedoraproject.org/fedora  latest      1b52edb08181  7 days ago      159 MB
Matched Content