Using portainer you can manage your local (or remote) docker through a web UI.

Portainer is an open source project.

Deployment

The easiest way to deploy portainer is using a container. It is also possible to deploy it locally (for more details and options, check the links bellow).

On this example we will create a folder under the current directory (e.g. ./portainer) where the portainer container will persist its configuration.

For Mac or Linux:

mkdir ./portainer

docker run -d -p 9000:9000 --name portainer --restart always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $PWD/portainer:/data \
portainer/portainer

For Windows (using powershell):

mkdir ./portainer

docker run -d -p 9000:9000 --name portainer --restart always `
-v /var/run/docker.sock:/var/run/docker.sock `
-v $pwd/portainer:/data `
portainer/portainer

Showtime

On your localhost the portainer can be accessed at http://localhost:9000

On first visit, define default user

References:

Categories: TL;DR

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *