Install Portainer Community Edition (CE) with Docker on Linux

Learn how to easily set up a visual control panel for your containers by installing Portainer CE on your Linux system.

pterodactyl

Introduction to Container Management

Linux

Understanding Portainer

Portainer is a powerful, user-friendly software tool that helps you manage your Docker environments through a simple web browser interface. Instead of typing long and complicated text commands in the terminal to control your applications, Portainer lets you use your mouse to create, start, stop, and delete containers. It acts as a visual dashboard, making it much easier to see exactly what is running on your server at any given time without needing to memorize codes.

The Community Edition (CE) of Portainer is completely free and open-source, which makes it perfect for individuals, home lab users, and small teams. It allows you to easily manage everything in Docker, including your container networks, stored data (volumes), and system resources, all from a single screen. This saves a great deal of time and removes the confusion of managing Docker, making it highly accessible for beginners while still being very useful for experienced users.

Prerequisites

  • A Linux System: A working Linux machine (such as Ubuntu, Debian, or CentOS).
  • Docker Installed: The latest version of Docker must be installed and actively running on your system.
  • Admin Privileges: You need sudo or root access to run the installation commands in the terminal.
  • Internet Connection: An active network connection to download the Portainer files.

Step-by-Step Installation

The easiest way to install Portainer is by using the docker run command. Follow these simple steps in your Linux terminal:
1

Create a data volume

First, you need to create a secure storage space (a volume) where Portainer will save its own database and settings. Run this command:
BASH
docker volume create portainer_data
2

Download and install Portainer CE

Next, use the following command to download the Portainer Community Edition image and start the container. This command connects the necessary network ports and ensures Portainer automatically restarts if your server reboots:
BASH
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:lts
3

Verify the installation

To make sure Portainer has successfully started, check your active Docker containers by running:
BASH
docker ps
(You should see portainer/portainer-ce:lts in the list with a status of "Up").
4

Log into the Web Interface

Now that the installation is complete, open your web browser to access the Portainer setup page. Go to the following address:
Plaintext
https://localhost:9443
(Note: If you installed Portainer on a remote server instead of your personal computer, replace localhost with your server's actual IP address, for example: https://192.168.1.50:9443) .

Discover CTCservers Dedicated Server Locations

CTCservers servers are available around the world, providing diverse options for hosting websites. Each region offers unique advantages, making it easier to choose a location that best suits your specific hosting needs.