Dockers

Docker UI App – How to Install Portainer

Portainer is a Docker UI app which can be used to manage one or more docker environments locally or remotely with ease. It provides a detailed overview of Docker environment including UI access to manage containers, images, networks and volumes. In addition, it helps in managing different aspects of Docker environment such as managing Docker images, containers etc.  One of the most cool features is user management. You would be able to create users and associate it with different Docker environments (locally or remotely).

In this post, you will learn about how to install Portainer on your Linux desktop environment having Docker runtime engine.

How to install Portainer on Linux Environments (Ubuntu)

Portainer runs as a lightweight Docker container (the Docker image weights less than 4MB) on a Docker engine or Swarm cluster. The following command can be executed to install Portainer on Linux environments such as Ubuntu.

docker volume create portainer_data
docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer

Once done with setup, make sure a Docker container on top of image “portainer/portainer” is running by executing the command such as docker ps. Open the browser and access the Portainer from UI using URL such as http://localhost:9000. The following is the screenshot:

Figure 1. Docker UI Portainer

The following are some of the steps which need to be followed to get started with Portainer:

  • First and foremost, create an admin user by entering the custom password of your choice. You will use this username/password later for accessing portainer UI. Figure 1 represents this step.
  • Next step is to connect Portainer with Docker environment running on localhost. To connect Portainer with docker environment running remotely, you will have to provide endpoint URL for managing the docker environment where Portainer is running. Note that endpoint URL is URL or IP address of the docker host.

    Figure 2. Connect Portainer with Docker Environment

  • You land on Portainer dashboard. Following is the screenshot:

    Figure 3. Portainer Dashboard

  • Pay attention to some of the following you could do from the dashboard:
    • Manage application templates in terms of deploying the app containers, managing access control etc.
    • Manage containers (start/restart, stop, kill, remove, add)

      Figure 4. Manage containers portainer

    • Manage images (pull, remove images)

      Figure 5. Manage images using portainer

    • Manage networks (add/remove networks)
    • Manage Volumes
  • Adding User to Endpoints: You could do user management in terms of adding users with specific access control for working with Portainer UI. The following are steps to add users:
    • Add a user using user management.
    • Go to Endpoints page.
    • Click Manage access to authorize one or more users to access one or more endpoints.

Further Reading / Reference

Summary

In this post, you learned about how to setup or install Portainer App for managing Docker environments using UI app.

Did you find this article useful? Do you have any questions or suggestions about this article in relation to Installing Portainer App and getting started with managing Docker environments using UI? Leave a comment and ask your questions and I shall do my best to address your queries.

Ajitesh Kumar

I have been recently working in the area of Data analytics including Data Science and Machine Learning / Deep Learning. I am also passionate about different technologies including programming languages such as Java/JEE, Javascript, Python, R, Julia, etc, and technologies such as Blockchain, mobile computing, cloud-native technologies, application security, cloud computing platforms, big data, etc. I would love to connect with you on Linkedin. Check out my latest book titled as First Principles Thinking: Building winning products using first principles thinking.

Share
Published by
Ajitesh Kumar
Tags: docker

Recent Posts

Large Language Models (LLMs): Four Critical Modeling Stages

Large language models (LLMs) have fundamentally transformed our digital landscape, powering everything from chatbots and…

3 weeks ago

Agentic Workflow Design Patterns Explained with Examples

As Large Language Models (LLMs) evolve into autonomous agents, understanding agentic workflow design patterns has…

3 weeks ago

What is Data Strategy?

In today's data-driven business landscape, organizations are constantly seeking ways to harness the power of…

3 weeks ago

Mathematics Topics for Machine Learning Beginners

In this blog, you would get to know the essential mathematical topics you need to…

2 months ago

Questions to Ask When Thinking Like a Product Leader

This blog represents a list of questions you can ask when thinking like a product…

2 months ago

Three Approaches to Creating AI Agents: Code Examples

AI agents are autonomous systems combining three core components: a reasoning engine (powered by LLM),…

2 months ago