Skip to content

Latest commit

 

History

History

portainer-tutorial

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Portainer Install Ubuntu tutorial - manage your docker containers

Portainer Install Ubuntu tutorial, let’s have a look at how to install Portainer on an Ubuntu server. Portainer CE is a free and open-source tool that manages all your docker containers. It has a nice clean web UI where you can inspect and control all your docker resources.

We will use the free and open-source software Portainer.

Project Homepage: Documentation:

Video: https://youtu.be/ljDI5jykjE8

Prerequisites

  • Linux Server running Ubuntu 20.04 LTS or newer

You can still install Docker on a Linux Server that is not running Ubuntu, however, this may require different commands!

1. Install Docker, and Docker-Compose

You can still install Docker on a Linux Server that is not running Ubuntu, however, this may require different commands!

1.1. Install Docker

sudo apt update

sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

sudo apt update

sudo apt-get install docker-ce docker-ce-cli containerd.io

1.2. Check if Docker is installed correctly

sudo docker run hello-world

1.3. Install Docker-Compose

Download the latest version (in this case it is 1.25.5, this may change whenever you read this tutorial!)

sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

1.4. Check if Docker-Compose is installed correctly

sudo docker-compose --version

1.5. (optional) Add your linux user to the docker group

sudo usermod -aG docker $USER

2. Set up Portainer

2.1. Create a new Docker Volume

docker volume create portainer_data

2.2. Launch Portainer

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