Member-only story

Manage containers with Portainer

Maciej
5 min readFeb 8, 2021

--

What exactly is Portainer ??

It is a tool that can manage Docker containers and images with GUI. With a stylish UI and simple operability, it is a tool that can be recommended for a wide range of people from beginners to advanced users.

Basic usage

Ok so let’s use Portainer first. Since Portainer it self is provided as a Docker image, all you have to do is start the container as shown below. For this we will use example environment running on vagrant.

root@vagrant:/home/vagrant# docker run \
> --detach \
> --publish 9000:9000 \
> --publish 8000:8000 \
> --name portainer \
> --restart always \
> --volume /var/run/docker.sock:/var/run/docker.sock \
> --volume portainer_data:/data \
> portainer/portainer-ce
Unable to find image 'portainer/portainer-ce:latest' locally
latest: Pulling from portainer/portainer-ce
b890dbc4eb27: Pull complete
81378af8dad0: Pull complete
Digest: sha256:21713e42233ee953b4cd4e6e8b1e4b6c43ebe2ca1c2dc762824a1866fdb91d3e
Status: Downloaded newer image for portainer/portainer-ce:latest
ba35bed0ae7baed1ee1f92b2ada2735f111455bf137d31ba7e2d612e641efb36
root@vagrant:/home/vagrant#

--

--

Maciej
Maciej

Written by Maciej

DevOps Consultant. I’m strongly focused on automation, security, and reliability.

No responses yet