File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 55
66IMAGE_NAME =slocomptech/openvpn
77DATA_DIR =$(shell pwd) /data
8- CONTAINER =ovpn
8+ CONTAINER_NAME =ovpn
99
1010
1111default : build
@@ -37,29 +37,29 @@ config:
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 } ${IMAGE_NAME} :latest
40+ docker run -it --cap-add NET_ADMIN -p 1194:1194/udp -v ${DATA_DIR} :/config --name ${CONTAINER_NAME } ${IMAGE_NAME} :latest
4141
4242#
4343# Starts container
4444#
4545start :
46- docker start ${CONTAINER }
46+ docker start ${CONTAINER_NAME }
4747
4848#
4949# Stops container
5050#
5151stop :
52- docker stop ${CONTAINER }
52+ docker stop ${CONTAINER_NAME }
5353
5454#
5555# Restart container
5656#
5757restart :
58- docker restart ${CONTAINER }
58+ docker restart ${CONTAINER_NAME }
5959
6060#
6161# Open terminal inside container
6262# Only when container is running
6363#
6464term :
65- docker exec -it ${CONTAINER } bash
65+ docker exec -it ${CONTAINER_NAME } bash
You can’t perform that action at this time.
0 commit comments