1.6 KiB
Prior to installing Portainer you must install Docker.
Install Portainer
Documentation Resource: https://docs.portainer.io/start/intro
The documentation resource should be referred to as often as possible. It is constantly being updated. This resource is just a quick reference guide.
Install Portainer CE With Docker on Linux (Standalone) It is suggested that a volume is created for the Portainer Server. The Portainer database is stored here.
docker volume create portainer_data
Then, download and install the Portainer Server container:
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
You can run docker ps to ensure that your newly installed Portainer Server is up and running.
Loggin In
Looking at the docker run command, we can see that ports 8000 and 9443 have been opened up for us to access the GUI. We can go to our web browser and work through the initial setup for the server. In this case we will use the port 9443.
https://localhost:9443
Replace localhost with the IP Address or FQDN if needed.
Upgrading Portainer
Documentation Resource: https://docs.portainer.io/start/upgrade/docker
docker stop portainer
docker rm portainer
docker pull portainer/portainer-ce:lts
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
docker system prune -a --volumes