You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/dev/run_container.sh

22 lines
515 B

#!/bin/bash
set -euo pipefail
PORTAINER_DATA=${PORTAINER_DATA:-/tmp/portainer}
PORTAINER_PROJECT=${PORTAINER_PROJECT:-$(pwd)}
PORTAINER_FLAGS=${PORTAINER_FLAGS:-}
docker rm -f portainer > /dev/null
docker run -d \
-p 8000:8000 \
-p 9000:9000 \
-p 9443:9443 \
-v "$PORTAINER_PROJECT/dist:/app" \
-v "$PORTAINER_DATA:/data" \
-v /var/run/docker.sock:/var/run/docker.sock:z \
-v /var/run/docker.sock:/var/run/alternative.sock:z \
-v /tmp:/tmp \
--name portainer \
portainer/base \
/app/portainer ${PORTAINER_FLAGS}