Informational
Make sure you have Docker and docker-compose installed.
Create Docker Volume
Portainer stores information on a Docker volume. Type the following command to create a Docker volume for the Portainer Server:
$ docker volume create portainer_data
Step 2: Install Portainer Server
The latest Portainer Community Edition image is available on Docker Hub. Use the docker run command to pull the image and start a Portainer Server container:
$ docker run -d -p 9443:9443 --name portainer
--restart unless-stopped
-v data:/data -v /var/run/docker.sock:/var/run/docker.sock
portainer/portainer-ce:latest
$ docker stop portainer
$ docker start portainer