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

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free β†’

πŸ‘‹ Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay