File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ build:
29
29
config :
30
30
@echo " Running temporary container"
31
31
mkdir -p data
32
- docker run -it --rm --cap-add NET_ADMIN -v ${DATA_DIR} :/config ${IMAGE_NAME} :latest bash
32
+ docker run -it -e PUID= $( id -u ) -e PGID= $( id -g ) - -rm --cap-add NET_ADMIN -v ${DATA_DIR} :/config ${IMAGE_NAME} :latest bash
33
33
34
34
#
35
35
# Setups & starts real container
36
36
# Run only once, then use docker start|stop|restart|exec
37
37
#
38
38
setup :
39
39
@echo " Running temporary container"
40
- docker run -it --cap-add NET_ADMIN -p 1194:1194/udp -v ${DATA_DIR} :/config --name ${CONTAINER_NAME} ${IMAGE_NAME} :latest
40
+ docker run -it -d -e PUID= $( id -u ) -e PGID= $( id -g ) - -cap-add NET_ADMIN -p 1194:1194/udp -v ${DATA_DIR} :/config --name ${CONTAINER_NAME} ${IMAGE_NAME} :latest
41
41
42
42
#
43
43
# Starts container
You can’t perform that action at this time.
0 commit comments