docker:portainer:install_portainer
This is an old revision of the document!
Table of Contents
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 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:lts
NOTE: This will run the container to pull, install and ensure it is always running.
- By default, Portainer generates and uses a self-signed SSL certificate to secure port 9443.
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.
Connect Portainer to Docker
docker/portainer/install_portainer.1747759409.txt.gz · Last modified: 2025/05/20 16:43 by peter