To start, make sure our system is up to date
Update your systems:
sudo apt-get update
sudo apt-get upgrade
Once the system is up to date, we install Docker followed by portainer which is a simple management solution for Docker. It consists of a web UI that allows you to easily manage your Docker containers, images, networks, etc.. For more info – https://portainer.readthedocs.io/en/stable/
Once that is done, we are now ready to install the program
Create a disk for you portainer instance
sudo docker volume create portainer_data
sudo docker run -d \
–name=”portainer” \
–restart on-failure \
-p 9000:9000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer
Now you should be able to connect to portainer…. To do this you navigate to http://IP.OF.HOST:9000
It will prompt you to create a username, once you do that, click on create user After that choose Local and then click on connect.
Done!