Install and Manage Portainer - Linux
Portainer is a powerful GUI-based container-as-a-Service solution that helps organizations manage and deploy cloud-native applications quickly and securely.
Introduction
Portainer is comprised of two elements, the Portainer Server, and the Portainer Agent. Both elements run as lightweight Docker containers on a Docker engine. Due to the nature of Docker, there are many possible deployment scenarios
Regardless of your configuration, you will need:
The latest version of Docker installed and working. You can refer to Docker documentation for platform-specific instructions.
Administrator or sudo access on the machine that will host your Portainer instance.
By default, Portainer will expose the UI over port 9000 and expose a TCP tunnel server over port 8000. The latter is optional and is only required if you plan to use the Edge compute features with Edge agents.
Always match the agent version to Portainer Server version. i.e., while installing or upgrading to Portainer 2.6 make sure all the agents are also version 2.6.
Deploying Portainer CE in Docker
Install Portainer Server
docker volume create portainer_data
#Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
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-ceInstall Portainer Agent Only
docker run -d -p 9001:9001 --name portainer_agent --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/volumes:/var/lib/docker/volumes portainer/agentWhen you're done, open your browser and type the address where Portainer Server is installed.
SERVER_IP:9000
The first step will be like basic settings which, in general, is fast, you will have to define an administrator password and the environment you want to control, choose the local environment.
Accessing the panel
After making the initial settings, you will see the following image in your browser:

In the Portainer home screen, all Endpoints (environments) configured will appear. In my configuration, I will have two, one corresponding to the local environment and another environment that is connected.

In your case, select the local Endpoint to view your portainer.

In the containers menu, you can see all docker images, you can also interrupt/manage the image without having to type commands in the terminal.

Reference: https://documentation.portainer.io/ https://www.youtube.com/watch?v=ljDI5jykjE8
Last updated
Was this helpful?