Using Portainer as a GUI for Docker in Windows

Posted by : at

Category : docker

Ads by Google



Recently I came across this popular GUI for Docker Management called Portainer. Portainer solves a very crucial problem for Docker. It gives you a GUI for your local Docker Environment ! Yes, that’s correct, no more CLI headache for managing the docker images, containers and all. All you need is install Portainer and now working with Docker is now a few clicks.

Why Portainer ?

Portainer is a open-source, management toolset that allows you to easily build, manage and update the docker containers or the stacks easily with the help of a beautiful GUI

Since Portainer is open-source you can check for the source-code here at - Github

How to install Portainer ?

Portainer runs on Docker, so first you need to Install Docker in your System. You can refer to the Docker Installation Docs here :

You can try out the public demo instance: http://demo.portainer.io/ (login with the username : admin and the password : tryportainer).

Install Portainer using Docker :

You can install Portainer using Docker in a new Docker container from scratch. But, ready-made containers are already available for several apps on Docker Hub. So all you need to do is pull those containers and install. If you are ready, open Docker command prompt and get ready to setup Portainer in Docker.

Method 1: Using Portainer Docker Hub Image :

Step 1. Pull Portainer Image

We need to grab the latest version of Portainer container from the Portainer Docker Hub. This is the official Docker image for Portainer.

docker pull portainer/portainer

Pull the ready-made Portainer docker container using the above command.

Pull Portainer Docker Hub Image

Step 2. Set Portainer Configuration Parameters in Docker

After pulling the container with the latest version of Portainer, we need to configure the usage parameters such as download folders, port number, etc. for the service. Copy all lines in the code block below (it is one single command) and paste it into docker prompt.

$ sudo docker create --name=portainer --restart=always -v /home/docker/portainer/data:/data -v /var/run/docker.sock:/var/run/docker.sock -e PGID=1001 -e PUID=1001 -e TZ=Europe/London -p 9000:9000 portainer/portainer
  1. Start and Stop Portainer Container in Docker

If you used the correct parameters, you can go ahead and start the Portainer container you have just created, using the following command.

$ sudo docker start portainer

After starting the Portainer Docker container, you will be able to open the web interface on port 9002. In my case its http://localhost:9002

Running Portainer Locally

Please note that before getting to the Homepage, you will be asked to setup the password for admin user. Make sure you use a strong password.

Great ! You have finally setup Portainer :D


Ads by Google