View Categories

Portainer

What is portainer? #

Portainer is a lightweight management UI which allows you to easily manage your different Docker environments (Docker hosts or Swarm clusters). Portainer is meant to be as simple to deploy as it is to use. It consists of a single container that can run on any Docker engine (can be deployed as Linux container or a Windows native container, supports other platforms too). Portainer allows you to manage all your Docker resources (containers, images, volumes, networks and more) ! It is compatible with the standalone Docker engine and with Docker Swarm mode.

Installation #

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

docker volume create portainer_data

Then, 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:2.20.0

Logging In #

Now that the installation is complete, you can log into your Portainer Server instance by opening a web browser and going to:Copy

https://localhost:9443

Replace localhost with the relevant IP address or FQDN if needed, and adjust the port if you changed it earlier.

httpd example #

Download httpd image #

In the side menu choose “images” enter “httpd” image and press “pull the image”:

After installation the image will show in the list:

Run the httpd container #

Afdter installing the “httpd” imaghe, you can select “containers” In the side menu, fill in container name, wich image, and the portmapping, press deployy container to start/run the container:

After running/starting the container you can see the container in the list: