Skip to content

Instantly share code, notes, and snippets.

@senorihl
Last active July 10, 2022 16:00
Show Gist options
  • Save senorihl/48f693a9a25479e4b5ee1b97ca12f699 to your computer and use it in GitHub Desktop.
Save senorihl/48f693a9a25479e4b5ee1b97ca12f699 to your computer and use it in GitHub Desktop.
Simple local portainer container
set -eux; \
docker volume create portainer_data ;\
portainer_pass=$(docker run --rm httpd:2.4-alpine htpasswd -nbB admin "pass" | cut -d ":" -f 2) ;\
docker run -d -p 1337:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer-ce:latest --admin-password="$portainer_pass"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment