====== Systems - Docker Main - Install Portainer ======
===== Create a Volume for Portainer =====
docker volume create portainer_data
**NOTE:** If an error is seen, log out and then log back in, and retry the command.
----
===== Install Portainer =====
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
----
===== Test Portainer =====
Visit http://192.168.1.30:9000 in a browser.
It should show a login screen where an admin user can be setup:
* Username: **Admin**.
* Password: **Some secure password**.
* Click **Create User**.
**NOTE:** The IP address should be whatever this is set to in the Ubuntu VM.
----
===== Use Local =====
After Logging into Portainer, select the **Local** option.
* Click **Connect**.
----
===== References =====
https://documentation.portainer.io/v2.0/deploy/ceinstalldocker/