Ubuntu 22.04
Sponsored Link

Podman : Use Docker Command2022/04/28

 
Install a script named [docker] that emulates the Docker CLI by executes podman commands.
[1] Install Podman-docker package.
root@dlp:~#
apt -y install podman-docker
# [docker] command is installed

root@dlp:~#
ll /usr/bin/docker

-rwxr-xr-x 1 root root 163 Dec 26 00:45 /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/ubuntu-nginx      latest      00787fa1628b  55 minutes ago  170 MB
srv.world/ubuntu-apache2    latest      c5d3a78bc38f  59 minutes ago  224 MB
docker.io/library/ubuntu    latest      3f4714ee068a  6 days ago      80.3 MB
docker.io/library/registry  2           2e200967d166  3 weeks ago     24.7 MB
Matched Content