Reduce difference in portainer.sh
This script is used both in this repository, as well as in the mip-federation repository, so keep them as close as possible.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# Copyright (c) 2018-2018
|
||||
# Copyright (c) 2017-2018
|
||||
# Data Intensive Applications and Systems Labaratory (DIAS)
|
||||
# Ecole Polytechnique Federale de Lausanne
|
||||
#
|
||||
@@ -25,9 +25,10 @@ test -d ${PORTAINER_DATA} \
|
||||
|| mkdir -p ${PORTAINER_DATA} \
|
||||
|| ( echo Failed to create ${PORTAINER_DATA}; exit 1 )
|
||||
|
||||
sudo docker run -d -p ${PORTAINER_PORT}:9000 \
|
||||
docker run -d \
|
||||
--publish ${PORTAINER_PORT}:9000 \
|
||||
--restart unless-stopped \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock:rw \
|
||||
-v ${PORTAINER_DATA}:/data:rw \
|
||||
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
|
||||
--mount type=bind,src=${PORTAINER_DATA},dst=/data \
|
||||
--name ${COMPOSE_PROJECT_NAME}_${PORTAINER_HOST} \
|
||||
${PORTAINER_IMAGE}${PORTAINER_VERSION}
|
||||
|
||||
Reference in New Issue
Block a user