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:
2929config :
3030 @echo " Running temporary container"
3131 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
3333
3434#
3535# Setups & starts real container
3636# Run only once, then use docker start|stop|restart|exec
3737#
3838setup :
3939 @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
4141
4242#
4343# Starts container
You can’t perform that action at this time.
0 commit comments