Skip to content
On this page

Install and Configure Portainer

Introduction

Portainer is a containerized web app for managing containerized apps. It gives you a user interface to manage your containerized applications for both local and cloud environments. This reduces the need for command line interfaces.

Deployment

First, create the volume that Portainer Server will use to store its database:

bash
docker volume create portainer_data

Then, download and install the Portainer Server container:

bash
docker run -d -p 127.0.0.1:9443:9443 --network shared-docker-network --ip 192.168.80.2 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest

INFO

If your Server only has a IPv6 Address use the following command:

bash
docker run -d -p 127.0.0.1:9443:9443 --network shared-docker-network --ip 192.168.80.2 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data registry.ipv6.docker.com/portainer/portainer-ce:latest

See docker-with-ipv6

TIP

By default, Portainer generates and uses a self-signed SSL certificate to secure port 9443. Alternatively you can provide your own SSL certificate during installation or vie Portainer UI after installation is complete.

Portainer Server has now been installed. You can check to see whether the Portainer Server container has started by running docker ps:

root@server:~# docker ps
CONTAINER ID   IMAGE                          COMMAND                  CREATED       STATUS       PORTS                                                                                  NAMES             
de5b28eb2fa9   portainer/portainer-ee: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

Log In

Because the Container is only available locally you need to set up and activate your WireGuard Connection as described in Step 13 (WireGuard) and then you can open the Portainer Web UI by typing 192.168.80.2:9443 in your browser.

TIP


Sources:

Portainer unter Docker installieren
Install Portainer with Docker on Linux
Uncomplicated Firewall (UFW) is not blocking anything when using Docker
How to get a Docker container's IP address from the host
Docker und ufw

Created by nikita-t1.