Skip to content

Instantly share code, notes, and snippets.

@dmslabsbr
Created August 7, 2023 17:33
Show Gist options
  • Select an option

  • Save dmslabsbr/9daf572299bc27097696b93cb643e122 to your computer and use it in GitHub Desktop.

Select an option

Save dmslabsbr/9daf572299bc27097696b93cb643e122 to your computer and use it in GitHub Desktop.
Install Portainer CE with Docker on Linux
# create the volume for Portainer database
docker volume create portainer_data
# Start Portainer server
docker run -d \
-p 8000:8000 \
-p 9443:9443 \
-p 9001:9000 \
--name portainer \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer-ce:latest
# if you don´t need http 9000 port, remove that line.
# To see, open this url in a browser
# https://yoursiteAddrerss:9443 or
# http://yoursiteAddrerss:9001
@dmslabsbr
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment