Portainer: Installation
Portainer is a management UI that allows us to manage our Docker. Portainer is a popular Docker UI that helps us visualise our containers, images and volumes. Portainer helps us take control of the Docker resources on our machine, avoiding terminal commands.Portainer can be used to set up and manage an environment, deploy applications and monitor application performance.
Portainer Setup
To download portainer, first we need to download and install docker. We can install docker by following these steps;
- The first step is to make sure our server is up to date.
sudo apt-get update && sudo apt-get upgrade
2. Next, install prerequisite packages
sudo apt install apt-transport-https ca-certificates curl software properties-common
3. Then add the GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
4. Add the Docker repository to APT sources
sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable”
5. Update the package
sudo apt update
6. Make sure about to install from the Docker repo
apt-cache policy docker-ce
7. After making sure, install Docker
sudo apt install docker-ce
After downloading the docker, we can download the portainer by following these steps;
- First, create the volume for Portainer Server
docker volume create portainer_data
2. Then run the command
sudo docker run -d -p 8000:8000 -p 9000:9000 — name=portainer — restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
3. Now, we can open our prefered browser and connect to default.