How to Install Portainer CE in standalone Docker on Linux

Portainer Community Edition is a lightweight service delivery platform for containerized applications that can be used to manage Docker, Swarm, Kubernetes and ACI environments. It is designed to be as simple to deploy as it is to use. The application allows you to manage all your orchestrator resources (containers, images, volumes, networks and more) through a ‘smart’ GUI and/or an extensive API.

Portainer consists of a single container that can run on any cluster. It can be deployed as a Linux container or a Windows native container. It works seamlessly in the cloud, on prem and at the edge to give you a consolidated view of all your containers.

Portainer consists of two elements: the Portainer Server and the Portainer Agent. Both run as lightweight containers on your existing containerized infrastructure. The Portainer Agent should be deployed to each node in your cluster and configured to report back to the Portainer Server container.

A single Portainer Server will accept connections from any number of Portainer Agents, providing the ability to manage multiple clusters from one centralized interface. To do this, the Portainer Server container requires data persistence. The Portainer Agents are stateless, with data being shipped back to the Portainer Server container.

# Prerequisites

  • Ensure you have latest docker installed
  • sudo access on the machine that will host your Portainer Server instance
  • Port 9443 available

# Table of Content

  1. Create volume that Portainer Server will use to store its database
  2. download and install the Portainer Server container
  3. Logging in

# Create the volume that portainer will use

First, create the volume that Portainer Server will use to store its database:

docker volume create portainer_data

# Download and install Portainer

Download and install the Portainer Server container:

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 \


$ docker ps
CONTAINER ID   IMAGE                                           COMMAND        CREATED         STATUS         PORTS                                                                                            NAMES
4ef26e0a60c5   "/portainer"   5 seconds ago   Up 3 seconds>8000/tcp, :::8000->8000/tcp,>9443/tcp, :::9443->9443/tcp, 9000/tcp   portainer

# Logging In

Now that the installation is complete, you can log into your Portainer Server instance by opening a web browser and going to https://localhost:9443

Replace localhost with the relevant IP address or FQDN if needed, and adjust the port if you changed it earlier.You will be presented with the initial setup page for Portainer Server.

Last updated on Mar 20, 2024 17:19 +0300
comments powered by Disqus
Citizix Ltd
Built with Hugo
Theme Stack designed by Jimmy