This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run portainer | |
## Linux (you can add user to docker group to avoid sudo, just be careful cuz that allows for privilege escalation) | |
docker run -d -p 9000:9000 --name portainer \ | |
--restart=always \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v portainer_data:/data \ | |
cr.portainer.io/portainer/portainer-ce | |
# Flush DNS (SystemD / Ubutnu 18+) | |
sudo systemd-resolve --flush-caches |