How to install Docker Web UI on Ubuntu 18.04

Created March 13, 2020


Recently I had to setup a Docker Web Interface for one of my Docker hosts so that it could be easier for the rest of my team to check the status of our Docker Containers, restart them in case that they needed to and also go through the container logs directly via their browser.

After some research, I've noticed that there are quite a few solutions like PortainerKitematicDockstation and more. So I've decided to test a few them and my personal favorite was Portainer.

So in this tutorial, I'll walk you through the steps you need to take in order to get Portainer up and running and how to find your way around it.


I will be using an Ubuntu 18.04 Droplet on DigitalOcean. If you wish to follow along and if you don't have a Digital Ocean account yet, you can sign up for DigitalOcean and get $100 free credit via this link here:

Once you have your account ready, you would also need the following:


Portainer is a lightweight management UI that allows you to easily manage your Docker host or Swarm cluster. Portainer is meant to be as simple to deploy as it is to use. It consists of a single container that can run on any Docker engine (Docker for Linux and Docker for Windows are supported).

Portainer Community Edition is the foundation of the Portainer world. With over 2 billion downloads throughout its history, it's a powerful, open-source management toolset that allows you to easily build, manage and maintain Docker environments. And it's completely free.

Portainer offers an intuitive  interface that you could access directly via your browser.

You can do almost all standard Docker operations via Portainer. Some of the key features include things like:


In order to get the Portainer Web UI up and running, all you need to do is run the following command:

docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer

Rundown of the command:

Once you run that, the Docker daemon would pull the Portainer image and spin up a new container. Then if you visit your Droplet's IP address on port 9000 you will be able to see the login screen and set up your username and password.

Note that you would need to make sure that port 9000 is open via your firewall if you have one enabled.


Once you have Portainer up and running, and once you've created your admin account, you would be asked to add your first Docker host that you would like to manage.

In our case, we would just go for a local environment, but you can add a Remote server as well.

To do that just click on the 'Local' tab and hit Connect. 

This is pretty much it, then you would be able to see your local docker host and the running containers.

If you click on the local instance, you would get to the management panel for that instance, and through there you could fully manage your Docker host.

Running Containers

Once we've clicked on the local Docker instance, we can then go ahead and spin up our first container!

Just click on the Container tab on the left. You would get to a page where you will be able to see 1 container already running and this would be the Portainer container itself.

To spin up a new container, just click on the Add Container button.

This would take you to a screen where you can specify all kinds of things including:

Under the advanced container settings section, you can specify things like:

To keep things simple, I will just use the defaults and set the name of my container to "web01" and I will use the "httpd" Docker image, then I will just hit the "Deploy the container" button. And soon enough the container would be up and running and I will be able to see it via my dashboard.

After that, if you click on your web01 container, you would get to a management page where you can do things like starting, stopping, duplicating the container, renaming, checking the status and lots more.D

You can even check your container's logs and attach to the container itself if you need to.

Basically, you would be able to do almost everything that you could do via your command line directly via your browser.


You've learned how to spin up an instance of Portainer and manage your local Docker Containers easily via the Portainer Web Dashboard.

I would recommend deploying this on a Droplet and playing around with it. The dashboard is quite intuitive and easy to find your way around it but at the same time, it has a lot of powerful functionalities.

For more information, you could take a look at the official documentation here.

I hope that you find this useful! Let me know if you have any questions or feedback!