Update Containers/Portainer/Deploy Portainer.md

This commit is contained in:
Nicole Rappe
2023-12-22 05:44:55 -07:00
parent 26674783cc
commit 29db04a22c

View File

@ -23,6 +23,7 @@ Install Docker then deploy Portainer
sudo apt install docker.io sudo apt install docker.io
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /srv/containers/portainer:/data portainer/portainer-ee:latest # (1) docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /srv/containers/portainer:/data portainer/portainer-ee:latest # (1)
``` ```
1. Be sure to set the `-v /srv/containers/portainer:/data` value to a safe place that gets backed up regularily. 1. Be sure to set the `-v /srv/containers/portainer:/data` value to a safe place that gets backed up regularily.
=== "Rocky Linux" === "Rocky Linux"
@ -34,6 +35,7 @@ Install Docker then deploy Portainer
sudo systemctl enable docker # (1) sudo systemctl enable docker # (1)
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /srv/containers/portainer:/data portainer/portainer-ee:latest # (2) docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /srv/containers/portainer:/data portainer/portainer-ee:latest # (2)
``` ```
1. This is needed to ensure that docker starts automatically every time the server is turned on. 1. This is needed to ensure that docker starts automatically every time the server is turned on.
2. Be sure to set the `-v /srv/containers/portainer:/data` value to a safe place that gets backed up regularily. 2. Be sure to set the `-v /srv/containers/portainer:/data` value to a safe place that gets backed up regularily.