AlmaLinux 9
Sponsored Link

Podman : Use Docker Command2023/03/01

 
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 Feb 25 13:56 /usr/bin/docker

# emulates the Docker CLI by executes podman

[root@dlp ~]#
cat /usr/bin/docker

#!/usr/bin/sh
[ -e /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/almalinux-nginx    latest      f556ccecaed8  2 hours ago  310 MB
srv.world/almalinux-httpd    latest      ffd19e5b5339  2 hours ago  251 MB
docker.io/library/almalinux  latest      d3ffa43c2567  6 days ago   196 MB
docker.io/library/registry   2           0d153fadf70b  2 weeks ago  24.7 MB
Matched Content