Last active
July 10, 2022 16:00
-
-
Save senorihl/48f693a9a25479e4b5ee1b97ca12f699 to your computer and use it in GitHub Desktop.
Simple local portainer container
This file contains hidden or 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
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