# 3-Install Portainer

Install Portainer on the docker VM
```
## Check to see if docker is running 
docker ps
## Command to show Docker images
docker images
## Command to create a volume and its name
docker volume create portainer_data
## Docker command to run the container using the persistant volume created earlier and and to always restart
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest
## Verify Docker container is running
docker ps
## Verify Source/docker IP address of Main system
ip a

##
Go to a browser and put in the following:

https://<IP Address>:9443 
Create password for admin account

```
## Youtube Video

<iframe width="560" height="315" src="https://www.youtube.com/embed/30nCAPoDhKQ?si=Orp1bHqm0K5JZv-z" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9