How to install Portainer.io

Learn how to streamline Docker management with our guide on how to install Portainer.io. Simplify your container workflows today!

Well, what can I do for ya? Are you looking for a powerful tool to manage your Docker containers? Portainer.io is a lightweight management UI that allows you to easily manage Docker environments. In this post, I’ll show you how to install Portainer.io on your system.

Install Docker

Before we can install Portainer.io, we need to have Docker installed on our system. Docker is a platform for developing, shipping, and running applications inside containers. I wrote about installing Docker in this post. Also, you can follow the instructions on the official Docker documentation for your specific operating system.

Pull the Portainer Image

Once Docker is installed, the next step is to pull the Portainer image from the Docker Hub repository. Open a terminal or command prompt and execute the following command:

docker pull portainer/portainer

This command will download the latest version of the Portainer image to your system.

Create a Docker Volume

Portainer requires a volume to store its configuration data. Create a Docker volume named “portainer_data” by running the following command:

docker volume create portainer_data

This command will create a persistent volume that Portainer will use to store its configuration and data.

Run Portainer Container

With the Portainer image downloaded and the Docker volume created, we can now run the Portainer container.

Execute the following command in your terminal:

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 portainer/portainer-ce:latest

This command will start a new Portainer container in detached mode, exposing Portainer on port 8000 (and 9443 through HTTPS) of your host system. It also mounts the Docker socket and the “portainer_data” volume to the container, allowing Portainer to interact with Docker and persist its data.

Access Portainer UI

Once the container is running, you can access the Portainer UI by opening a web browser and navigating to http://localhost:8000. You will be prompted to create an admin user and set a password. After completing the setup process, you’ll have full access to the Portainer dashboard, where you can start managing your Docker environments with ease.

Conclusion

Now, you successfully installed Portainer.io and are ready to streamline your Docker container management tasks. With its intuitive interface and powerful features, Portainer.io makes managing Docker environments a breeze. Explore its various capabilities and enjoy the full potential of Docker in your projects. See the Portainer.io documentation here for more configurations.

See ya!



Author: raffs

I am a computer engineer with more than 10 years of experience in programming, currently working as a software architect.