Monitor and Manage Docker Containers with Portainer.io (GUI tool) – Part-1
======
As **Docker** usage and adoption is growing faster and faster, monitoring **Docker container** images is becoming more challenging. As multiple Docker container images are getting created day-by-day, monitoring them is very important. There are already some in built tools and technologies, but configuring them is little complex. As micro-services based architecture is becoming the de-facto standard in coming days, learning such tool adds one more arsenal to your tool-set.
Based on the above scenarios, there was in need of one light weight and robust tool requirement was growing. So Portainer.io addressed this. “ **Portainer.io** “,(Latest version is 1.20.2) the tool is very light weight(with 2-3 commands only one can configure it) and has become popular among Docker users.
**This tool has advantages over other tools; some of these are as below** ,
* Light weight (requires only 2-3 commands to be required to run to install this tool) {Also installation image is only around 26-30MB of size)
* Robust and easy to use
* Can be used for Docker monitor and Build
* This tool provides us a detailed overview of your Docker environments
* This tool allows us to manage your containers, images, networks and volumes.
* Portainer is simple to deploy – this requires just one Docker command (can be run from anywhere.)
* Complete Docker-container environment can be monitored easily
**Portainer is also equipped with** ,
* Community support
* Enterprise support
* Has professional services available(along with partner OEM services)
**Functionality and features of Portainer tool are,**
1. It comes-up with nice Dashboard, easy to use and monitor.
2. Many in-built templates for ease of operation and creation
3. Support of services (OEM, Enterprise level)
4. Monitoring of Containers, Images, Networks, Volume and configuration at almost real-time.
5. Also includes Docker-Swarm monitoring
6. User management with many fancy capabilities
**Read Also :[How to Install Docker CE on Ubuntu 16.04 / 18.04 LTS System][1]**
### How to install and configure Portainer.io on Ubuntu Linux / RHEL / CentOS
**Note:** This installation is done on Ubuntu 18.04 but the installation on RHEL & CentOS would be same. We are assuming Docker CE is already installed on your system.
Once the complete installation is done, use the ip of host or Docker using port 9000 of the Docker engine where portainer is running using your browser.
**Note:** If OS firewall is enabled on your Docker host then make sure 9000 port is allowed else its GUI will not come up.
In my case, IP address of my Docker Host / Engine is “192.168.1.16” so URL will be,
<http://192.168.1.16:9000>
[![Portainer-Login-User-Name-Password][2]][3]
Please make sure that you enter 8-character passwords. Let the admin be the user as it is and then click “Create user”.
Now the following screen appears, in this select “Local” rectangle box.
[![Connect-Portainer-Local-Docker][4]][5]
Click on “Connect”
Nice GUI with admin as user home screen appears as below,
[![Portainer-io-Docker-Monitor-Dashboard][6]][7]
Now Portainer is ready to launch and manage your Docker containers and it can also be used for containers monitoring.
### Bring-up container image on Portainer tool
[![Portainer-Endpoints][8]][9]
Now check the present status, there are two container images are already running, if you create one more that appears instantly.
From your command line kick-start one or two containers as below,
```
root@linuxtechi:~$ sudo docker run --name test -it debian
Now click Refresh button (Are you sure message appears, click “continue” on this) in Portainer GUI, you will now see 3 container images as highlighted below,
[![Portainer-io-new-container-image][10]][11]
Click on the “ **containers** ” (in which it is red circled above), next window appears with “ **Dashboard Endpoint summary** ”
[![Portainer-io-Docker-Container-Dash][12]][13]
In this page, click on “ **Containers** ” as highlighted in red color. Now you are ready to monitor your container image.
### Simple Docker container image monitoring
From the above step, it appears that a fancy and nice looking “Container List” page appears as below,
[![Portainer-Container-List][14]][15]
All the container images can be controlled from here (stop, start, etc)
**1)** Now from this page, stop the earlier started {“test” container (this was the debian image that we started earlier)}
To do this select the check box in front of this image and click stop button from above,
This is the list of container images that are available but some may not running. These images can be imported, exported or uploaded to various locations, below screen shot shows the same,
**2)** Click on “ **volumes”** which is highlighted, you will get the below window,
[![Volume-list-Portainer-io-gui][26]][27]
**3)** Volumes can be added easily with following option, click on add volume button, below window appears,
Provide the name as “ **myvol** ” in the name box and click on “ **create the volume** ” button.
[![Volume-Creation-Portainer-io-gui][28]][29]
The newly created volume appears as below, (with unused state)
[![Volume-unused-Portainer-io-gui][30]][31]
#### Conclusion:
As from the above installation steps, configuration and playing around with various options you can see how easy and fancy looking is Portainer.io tool is. This provides multiple features and options to explore on building, monitoring docker container. As explained this is very light weight tool, so doesn’t add any overload to host system. Next set-of options will be explored in part-2 of this series.
Read Also: **[Monitor and Manage Docker Containers with Portainer.io (GUI tool) – Part-2][32]**