DEV Community

Cover image for Manage your containers with Portainer
Jannis
Jannis

Posted on • Edited on • Originally published at Medium

4 2

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.

https://localhost:9443
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

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

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

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay