Ubuntu 26.04

Podman : Install2026/05/07

 

Install Podman that is Container management tool.

[1]

If UFW is enabled, enable Forward policy on it, refer to [1] on here.

[2] Install Podman.
root@dlp:~#
apt -y install podman
[3] Download an official image and create a Container and output the words [Welcome to the Podman World] inside the Container.
# download the official image

root@dlp:~#
podman pull ubuntu

Resolved "ubuntu" as an alias (/etc/containers/registries.conf.d/shortnames.conf)
Trying to pull docker.io/library/ubuntu:latest...
Getting image source signatures
Copying blob 1c24335ddd46 done   |
Copying blob 6f5c5aa4e145 done   |
Copying config 30ba44506a done   |
Writing manifest to image destination
30ba44506a6d003153c80023c4474e67d3487e9178df254bde55b19209cc8683

# run echo inside a container

root@dlp:~#
podman run ubuntu /bin/echo "Welcome to the Podman World"

Welcome to the Podman World
[4] Connect to the interactive session of a Container with [i] and [t] option like follows.
If [exit] from the Container session, the process of a Container finishes.
root@dlp:~#
podman run -it ubuntu /bin/bash

root@812219374bdb:/#    
# connected
root@812219374bdb:/#
cat /etc/os-release

PRETTY_NAME="Ubuntu 26.04 LTS"
NAME="Ubuntu"
VERSION_ID="26.04"
VERSION="26.04 (Resolute Raccoon)"
VERSION_CODENAME=resolute
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=resolute
LOGO=ubuntu-logo
root@812219374bdb:/#
exit

exit
root@dlp:~#    
# come back
[5] If you'd like to run a Container as a Daemon, add [d] option.
root@dlp:~#
podman run -itd ubuntu /bin/bash

6fe5dcd8bde550b6e451046b2904c73f2dc2af37dd8de3c3025c5a2dea103f58

# show podman processes

root@dlp:~#
podman ps

CONTAINER ID  IMAGE                            COMMAND     CREATED         STATUS         PORTS       NAMES
6fe5dcd8bde5  docker.io/library/ubuntu:latest  /bin/bash   10 seconds ago  Up 11 seconds              bold_dirac

# attach to container session

root@dlp:~#
podman exec -it 6fe5dcd8bde5 /bin/bash

root@6fe5dcd8bde5:/#    
# connected

root@6fe5dcd8bde5:/#
exit
# stop container process

root@dlp:~#
podman kill 6fe5dcd8bde5

root@dlp:~#
podman ps

CONTAINER ID  IMAGE   COMMAND  CREATED  STATUS  PORTS   NAMES
Matched Content