Ubuntu 26.04

Podman : Use Docker Command2026/05/07

 

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 228 Feb 23 15:35 /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       761cdbcf586d  9 minutes ago  157 MB
srv.world/ubuntu-nginx     latest       4bb5563726cd  17 hours ago   153 MB
srv.world/ubuntu-apache2   latest       53b7e6d878bc  17 hours ago   231 MB
dlp.srv.world:5000/ubuntu  my-registry  30ba44506a6d  2 weeks ago    111 MB
docker.io/library/ubuntu   latest       30ba44506a6d  2 weeks ago    111 MB
Matched Content