Ubuntu 24.04
Sponsored Link

Podman : Use Docker Command2024/05/05

 
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 Apr  1 06:47 /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/iproute          latest       4ef0738fb3ef  38 minutes ago  123 MB
srv.world/ubuntu-nginx     latest       1b1a4d3f4f26  3 hours ago     125 MB
srv.world/ubuntu-apache2   latest       38d508336863  3 hours ago     226 MB
dlp.srv.world:5000/ubuntu  my-registry  bf3dc08bfed0  5 days ago      78.7 MB
docker.io/library/ubuntu   latest       bf3dc08bfed0  5 days ago      78.7 MB
Matched Content