How to Install Portainer on Your System

How to Install Portainer on Your System


Portainer is a powerful tool for managing Docker containers. In this guide, we’ll walk you through the steps to install Portainer and set up Docker Compose.


1. Update Your System

Start by updating the packages on your system:

$ sudo apt update

$ sudo apt upgrade -y

2. Install Docker Compose

Install Docker Compose by running the following commands:

$ curl -L https://github.com/docker/compose/releases/download/v$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose


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

3. Create a Portainer Container

Once Docker and Docker Compose are installed, you can create a Portainer container using the following command:

$ sudo docker volume create portainer_data

$ sudo 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-ee:latest

4. Install Docker Compose (if not already installed)

If you haven’t installed Docker Compose yet, you can install it with the following command:

$ sudo apt install docker-compose

By following these steps, Portainer will be set up and ready to use on your system, allowing you to manage Docker containers with ease and efficiency.


How to Install Docker Engine on Ubuntu