Rocky_Linux_8
Sponsored Link

Podman : Use Docker Command2021/07/29

 
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 163 Jun 11 11:49 /usr/bin/docker

# emulates the Docker CLI by executes podman

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

#!/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/rocky-nginx            latest  b11bf176fd62  38 minutes ago  340 MB
srv.world/rocky-httpd            latest  5104875e9a87  39 minutes ago  342 MB
docker.io/rockylinux/rockylinux  latest  333da17614b6  5 weeks ago     234 MB
docker.io/library/registry       2       1fd8e1b0bb7e  3 months ago    26.8 MB
Matched Content