====== Docker - Install Portainer ====== ===== Create a volume to host Portainer data ===== docker volume create portainer_data returns portainer_data **NOTE:** Portainer requires data persistence, and as a result needs at least one storage-class available to use. Portainer will attempt to use the **default** storage class during deployment. If you do NOT have a storage class tagged as **default** the deployment will likely fail. ---- ===== Install the Portainer Docker Image ===== docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data --restart always portainer/portainer **NOTE:** This will run the container to pull, install and ensure it is always running. ---- ====== Check that Portainer is running ====== docker ps ---- ====== Configure Portainer ====== Navigate to http://yourdeviceip:9000. Portainer will prompt you to set up a new password for your admin user. {{:pi-hole:portainer_-_initial_login_admin_user_creation.png?800|}} ---- ====== Connect Portainer to Docker ====== Click **Local** and **Connect**. {{:pi-hole:portainer_-_connect_portainer_to_docker.png?800|}} **NOTE:** If using a remote Docker then select the appropriate **Remote** option. ----