Fedora 39
Sponsored Link

Podman : Use Docker Command2023/11/16

 
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 31 09:00 /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       6a43f18a8fc3  33 minutes ago  447 MB
srv.world/fedora-httpd             latest       43a608e50bc8  39 minutes ago  459 MB
registry.fedoraproject.org/fedora  latest       ec546109f822  8 days ago      183 MB
dlp.srv.world:5000/fedora          my-registry  ec546109f822  8 days ago      183 MB
Matched Content