Skip to content
Advertisements

Manage Docker Containers with Portainer.io

I have recently become fascinated with Docker on my Raspberry Pi and have been using it to do everything from Python Scrips to Home Assistant and running various API’s for integration into my smart home. Docker which is a container-based virtualization system allows you to run OS level virtual environments in “containers” giving you the ability to have multiple running at one time. I have found this great for combining a couple Raspberry Pi’s onto a single Raspberry Pi. No longer do I need to have a dedicated Raspberry Pi for Home Assistant and a separate on for Pi-hole, I can run them both on one machine! This is all well and good but quickly I needed a way to manage all these containers which lead me to Portainer.io. Portainer.io runs in its own Docker container and gives you an easy to use web interface where you can easily see what is going on with all your Docker containers and images.

Setting up Portainer.io on a Raspberry Pi is simple and should not give anyone any trouble, but I will go through the process here just to save you some internet searching.

  1. From the Raspbian Desktop launch Terminal
  2. From Terminal you need to install Portainer.io using the follow command,
  • $ docker run -d -p 9000:9000 –restart always -v /var/run/docker.sock:/var/run/docker.sock -v /opt/portainer:/data portainer/portainer
  1. You can now Portainer.io on the web at,

The Portainer.io UI makes it super simple to see what is going on especially as the number of Docker containers I have in play continues to grow. I can easily see what is running, pause a container, completely stop a container and even remove containers. These would normally all require at least one terminal command so eliminating that is a huge benefit.

Any other Docker lovers out there? What are you using to manage your containers?

Advertisements

Mike View All

I am passionate about the IoT and connected devices. Using connectivity to automate our lives will empower civilization to achieve greatness.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: