DEV Community

Cover image for Manage your containers with Portainer

Posted on


Manage your containers with Portainer

Today we are going to take a look at Portainer!

 ❓ Quick intro to Portainer

First off all there's one question. What's Portainer?.

Portainer is a web-based management tool for all of your containers. You can deploy, configure, troubleshoot and secure containers. Doesn't matter if your infrastructure is on Kubernetes, Docker, Swarm or Nomad in any cloud, data center or device.

Portainer dashboard preview

A beautiful UI to have the overview about your running processes and containers.
It has many integrations and is easy to setup. E.g. auto deploy on git repository push (GitHub, GitLab, etc.).

⚙️ Setup Portainer for Linux

We are going to setup Portainer on Linux.
You already need to have some knowledge about Docker because it doesn't get covered here.

First, create the volume that portainer server will use to store its database:

docker volume create portainer_data
Enter fullscreen mode Exit fullscreen mode

After that we can already install the portainer server container (Community Edition):

docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest
Enter fullscreen mode Exit fullscreen mode

And after it started it's ready to go! Visit it's page and start by creating your admin user and follow the instructions.

Enter fullscreen mode Exit fullscreen mode

ℹ️ FYI: There's also a free business edition with some additions. Read more about the differences!

Thanks for reading!
Support me

Top comments (0)

🌚 Browsing with dark mode makes you a better developer.

It's a scientific fact.