Docker Management with Portainer
Overview
Portainer simplifies containerized application management across Docker, Docker Swarm, Kubernetes, and Podman, whether in the Cloud, Hybrid Cloud, On-Premise, or Data Centers. As a universal container management platform, it provides an intuitive interface that streamlines deployment and monitoring, making containerization accessible to all. By removing complexity, Portainer enables users to focus on innovation and efficiency.
Why Portainer?
Simplicity
Portainer’s user-friendly interface is designed with simplicity at its core. It eliminates the need for extensive training, allowing teams to get up and running quickly.
Universality
Portainer is agnostic, supporting a wide range of container technologies and environments. It provides a single pane of glass to manage your entire container ecosystem, regardless of the underlying infrastructure.
Empowerment
Portainer democratizes container management. It empowers developers, DevOps teams, and IT operations to take control of their environments without needing to become container experts.
Community & Support
Built on a foundation of open-source collaboration, Portainer is backed by a passionate community and a robust support network, ensuring that you’re never alone on your container journey.
Demo - Prerequisites
-
AWS Account
-
VS Code with Remote SSH (Optional)
Demo
Part 1: Setting up the environment
-
Sign in to
AWS Management Consoleand go toEC2. -
From the menu on the left, choose
Instances. Then, chooseLaunch instances. -
Launch an EC2 with the following configuration:
Number of instances : 1
Name and tags : portainer-demo-instance
Amazon Machine Image (AMI) : Ubuntu Server 24.04 LTS (HVM)
Instance type : t3.medium
Key pair : <your-key-pair>
VPC : Default VPC
Security Group : 22, 80, 443, 8000, 8080, 9000, 9443
Storage : 30 GiB, gp3
User data : <content-of-user-data>
-
You can find the content of
user-data.shin the same directory withREADME.md. -
Choose
Launch instance. -
After the launch, choose the instance you created from the EC2 instance list.
-
Then, choose
Connect. TheConnect to instancepage is opened. -
Under the
EC2 Instance Connectsection, chooseConnect. -
Alternatively, you can connect to EC2 using its Public IP from VS Code.
Part 2: Configuring the Portainer
- Ensure that Docker and Docker Compose are safely installed.
- Create a working directory.
- In the working directory, create
docker-compose.yml.
-
You can find the content of
docker-compose.ymlin the same directory withREADME.md. -
Copy and paste the content to
docker-compose.yml. -
Create a container for Portainer.
- Copy and paste the following in a new tab on browser.
- The login page of Portainer is opened.

- Enter a username and a password as required.
Part 3: Exploring the features
-
After successful login, choose
Homefrom the menu on the left. -
Notice the local environment for Docker.

- Choose the local environment for Docker and analyze the dashboard.

- From the menu on the left, choose
Templates -> Application.

- Notice the commonly used templates. Search for
Nginxand choose it.
-
Choose
Deploy the container. Notice that two containers are running. -
Copy and paste the following in a new tab on browser.
-
The
Welcome to nginx!page is opened. -
Alternatively, you can list the containers from the terminal of instance.
-
In the
Container listpage of Portainer, locate theQuick Actionscolumn. -
The icons for
Logs,Inspect,Stats,Exec ConsoleandAttach Consoleare given from left to right for each container, respectively. -
Choose
Logsicon fordemo-container.

-
Analyze the logs for the container. Then, go back to the
Container listpage. -
Choose
Inspecticon fordemo-container.

-
Analyze the configurations for the container. Then, go back to the
Container listpage. -
Choose
Statsicon fordemo-container.

-
Analyze the statistics for the container. Then, go back to the
Container listpage. -
Choose
Exec Consoleicon fordemo-container. Then, chooseConnect.

-
The terminal for container is opened.
-
Don't forget to destroy the resources you created from AWS Management Console.