• Contact
  • About Me
  • Privacy Policy
  • Disclaimer
DefenceDev
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
    • Bash Scripts
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
  • Web Tools
No Result
View All Result
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
    • Bash Scripts
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
  • Web Tools
No Result
View All Result
DefenceDev
No Result
View All Result
ADVERTISEMENT
Home Solutions Docker

Install Portainer on Ubuntu 24.04 Using Docker Compose

neo by neo
October 23, 2025
in Docker
0
Install Portainer on Ubuntu 24.04 Using Docker Compose

Install Portainer on Ubuntu 24.04 Using Docker Compose

0
SHARES
12
VIEWS
Share on FacebookShare on LinkedIn
Table of Contents
  • Portainer on Ubuntu 24.04
  • Prerequisites
    • 1. Update your system
    • 2. Install Docker
    • 3. Enable and start Docker
    • 4. Install Docker Compose
  • Steps to Install Portainer
    • 1. Create a directory for Portainer
    • 2. Create the docker-compose.yml file
    • 3. Start Portainer
    • 4. Verify that Portainer is running
    • 5. Access the Portainer web interface
  • Conclusion

Portainer on Ubuntu 24.04

Portainer is a lightweight management interface that simplifies Docker administration.
It allows you to manage containers, images, networks, and volumes through a clean web-based dashboard.

Portainer Dashboard
Portainer Dashboard

In this guide, you’ll learn how to install and run Portainer Community Edition (CE) on Ubuntu 24.04 using Docker Compose.
This method keeps your setup simple and organized while making future updates easy.

Prerequisites

Before installing Portainer, make sure your system is up to date and Docker is installed.

1. Update your system

sudo apt update && sudo apt upgrade -y

2. Install Docker

If Docker isn’t installed yet, you can set it up with:

sudo apt install docker.io -y

3. Enable and start Docker

sudo systemctl enable docker
sudo systemctl start docker

4. Install Docker Compose

Install Docker Compose with a single command:

sudo apt install docker-compose -y

Verify the installation:

docker-compose --version

Steps to Install Portainer

Follow these steps to install Portainer using Docker Compose.

1. Create a directory for Portainer

mkdir ~/portainer && cd ~/portainer

This directory will contain your Portainer configuration file.

2. Create the docker-compose.yml file

Use a text editor like nano to create the file:

nano docker-compose.yml

Add the following content:

version: "3.9"

services:
  portainer:
    image: portainer/portainer-ce:latest
    container_name: portainer
    restart: always
    ports:
      - "8000:8000"
      - "9443:9443"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - portainer_data:/data

volumes:
  portainer_data:

Save and exit the file (CTRL + O, ENTER, CTRL + X).


3. Start Portainer

Run the following command to start Portainer in detached mode:

docker-compose up -d

Docker will download the latest Portainer image and start the container.


4. Verify that Portainer is running

Check the running containers:

docker ps

You should see a line showing the Portainer container status as Up.

root@ubuntu-server:~/portainer# docker ps
CONTAINER ID   IMAGE                           COMMAND        CREATED          STATUS          PORTS                                                                                                NAMES
ceeb7e0adf93   portainer/portainer-ce:latest   "/portainer"   33 minutes ago   Up 17 minutes   0.0.0.0:8000->8000/tcp, [::]:8000->8000/tcp, 0.0.0.0:9443->9443/tcp, [::]:9443->9443/tcp, 9000/tcp   portainer

5. Access the Portainer web interface

Open your browser and go to:

ADVERTISEMENT
https://<your-server-ip>:9443

For example:

https://192.168.1.10:9443
Portainer Create a User
Portainer Create a User

When you visit the page for the first time:

ADVERTISEMENT
  • Create an admin user
  • Select Local Docker Environment

That’s it! You now have a fully functional Portainer dashboard.

Portainer Home
Portainer Home
Container list
Container list

Conclusion

Portainer makes Docker management much easier by providing a powerful and user-friendly interface.
With this setup on Ubuntu 24.04, you can monitor containers, networks, and volumes efficiently.

Since Portainer runs as a Docker container, updating it is simple — just pull the latest image and restart the service:

cd ~/portainer
docker-compose pull
docker-compose up -d

You now have a complete web dashboard to manage your Docker environment securely and efficiently.

About The Author

neo

See author's posts

ADVERTISEMENT
Previous Post

FortiGate Country Address Object Generator – Block or Allow Access by Country

neo

neo

Related Posts

My Ultimate Docker Command Cheat Sheet (2025 Edition)
Docker

My Ultimate Docker Commands Cheat Sheet (2025 Edition)

Protect Docker-Hosted Application from HTTP Flood (DDoS) Attacks Using a Bash Script
Docker

Protect Docker-Hosted Application from HTTP Flood (DDoS) Attacks Using a Bash Script

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)
Docker

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nextcloud on Raspberry Pi 4 with Docker (Ubuntu 22.04)
Docker

Install Nextcloud on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)
Docker

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Docker on Raspberry Pi 4 with Ubuntu 22.04
Docker

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

Leave a Reply

Your email address will not be published. Required fields are marked *


Recommended

Nextcloud Access with Multiple Domains – Redirect and SSL Issues (Proxy Manager & Direct Port Forwarding)

Nextcloud Access with Multiple Domains – Redirect and SSL Issues (Proxy Manager & Direct Port Forwarding)

Fortinet FortiGate Upgrade Path Tool

Fortinet FortiGate Upgrade Path Tool

Install Portainer on Ubuntu 24.04 Using Docker Compose

Install Portainer on Ubuntu 24.04 Using Docker Compose

FortiGate Country Address Object Generator – Block or Allow Access by Country

FortiGate Country Address Object Generator – Block or Allow Access by Country

View & Copy Image Metadata Online – Camera & GPS Info

View & Copy Image Metadata Online – Camera & GPS Info

Categories

  • Blog
  • Cloud
    • Private
  • Linux Tutorials
    • Bash Scripting Tutorials
    • Commands
    • Networking
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Solutions
    • Docker
  • Video Tutorials
    • MikroTik Videos
  • Web Tools
ADVERTISEMENT

DefenceDev Tutorials

defencedev Logo

Whether you’re just starting or looking to expand your skills, I hope you find useful information and engaging discussions here. Let me take you through my journey and the goals behind this space!

Follow Us

Recent News

Install Portainer on Ubuntu 24.04 Using Docker Compose

Install Portainer on Ubuntu 24.04 Using Docker Compose

FortiGate Country Address Object Generator – Block or Allow Access by Country

FortiGate Country Address Object Generator – Block or Allow Access by Country

  • Site Map
  • Privacy Policy
  • Facebook Page
  • Disclaimer
  • Contact
  • About Me

© 2025 defencedev.com - All rights reserved.

No Result
View All Result
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
    • Bash Scripts
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
  • Web Tools

© 2025 defencedev.com - All rights reserved.