Getting Portainer up and running
We are first going to be looking at using Portainer to manage a single Docker instance running locally. I am running Docker for Mac so I will be using that, but these instructions should also work with other Docker installations.
First of all, to grab the container image from Docker Hub, we just need to run the following commands:
$ docker image pull portainer/portainer $ docker image ls
As you may see from the output if you are following along when we run the docker image ls
command, the Portainer image is only 78.6 MB. To launch Portainer, you simply have to run the following command if you are running macOS or Linux:
$ docker volume create portainer_data $ docker container run -d \ Â Â Â Â Â Â -p 9000:9000 \ Â Â Â Â Â Â -v /var/run/docker.sock:/var/run/docker.sock \ Â Â Â Â Â Â portainer/portainer
Windows users will have to run the following:
$ docker container...