Skip to content

portainer

Portainer

One thing I like to do after installing docker is implementing a docker container called Portainer. Portainer provides a very easy to understand user interface for deploying other docker containers. The great thing is, Portainer is a container itself, so it should run automatically following setup and allow you a nice gui interface for your docker environment via a web browser. I particularly love its dashboard because you get a great snapshot of your running containers, can easily restart and monitor your containers, but most importantly edit and deploy docker-compose files via the "stacks" page.

  • Portainer CE is free version
  • Install Guide
  • Create the volume that Portainer Server will use to store its database
docker volume create portainer_data
  • Download and install the Portainer Server container
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
  • Verify the container is running with docker ps
root@server:~# docker ps
CONTAINER ID   IMAGE                          COMMAND                  CREATED       STATUS      PORTS                                                                                  NAMES             
de5b28eb2fa9   portainer/portainer-ce:latest  "/portainer"             2 weeks ago   Up 9 days   0.0.0.0:8000->8000/tcp, :::8000->8000/tcp, 0.0.0.0:9443->9443/tcp, :::9443->9443/tcp   portainer
  • Navigate to https://HOST_IP_ADDRESS:9443 and create a user so you can log in to the Portainer web interface.