Portainer + Docker - Self Hosted container management UI
2023-10-21
Docker is a containerization platform that allows you to package applications and their dependencies into lightweight, isolated containers. These containers can run consistently across different environments, making it easier to deploy and manage applications.
For this installation, I will be using Ubuntu as my distribution of choice. The below commands will work on any Debian-based distribution.
Step 1
Access your cloud instance via SSH and update the repositories.
Step 2
Install Docker & Docker compose
Start and enable the Docker service by running:
Verify that Docker is running:
Step 3
Install Portainer We will use Docker to deploy a container with the Portainer container management tool
Run the following command in the terminal:
This command creates a Docker volume named "portainer_data" and then starts the Portainer container, exposing ports 8000 and 9000 for web access. The container will be automatically restarted if it crashes or when the system reboots.
Check the status of the docker container created
Remember to open port 9000 on the instance firewall.
Once the container is running, you can access the Portainer web interface by opening a web browser and navigating to: http://yourserveripaddress:9000
Create your Portainer account
Welcome to the Portainer dashboard
You have successfully installed Docker and Portainer on Ubuntu. You can now use Portainer to manage your Docker environment.
NB - If you are managing Portainer access through NGINX proxy manager, remember to enable websockets Support in NGINX. This will allow container CLI access from within Portainer.
Last updated