DEV Community

Cover image for How to Install and Use Podman on Debian 12
Dev
Dev

Posted on

How to Install and Use Podman on Debian 12

To install and use Podman on Debian 12, follow the steps below:
Step 1 : Start by updating your package list:

sudo apt update
Enter fullscreen mode Exit fullscreen mode

Step 2 : Proceed with the installation of Podman:

sudo apt install podman
Enter fullscreen mode Exit fullscreen mode

Image description
Step 3 : Ensure that Podman is installed correctly by checking its version:

podman --version
Enter fullscreen mode Exit fullscreen mode

Image description
Step 4 : Test Podman by running a basic Ubuntu container:

podman run -it ubuntu /bin/bash
Enter fullscreen mode Exit fullscreen mode

Image description
This command will pull the Ubuntu image if it's not already available and starts a container where you can execute commands.
Step 5 : Once you've finished testing, exit the container by typing:

exit
Enter fullscreen mode Exit fullscreen mode

Congratulations! You have successfully installed Podman on your Debian 12 system.
References

Top comments (0)