######################################### #VARIABLES: CAN BE EDITED ######################################### CONTAINER=test CONTNAME=$(CONTAINER)-1 DATAVOLUME=$(shell pwd) #net=host: mandatory for others containers to connect to mysql STARTOPT=-d \ -p 22122:22 \ --name $(CONTNAME) \ $(CONTAINER) ######################################### # ACTIONS: DO NOT EDIT BEYOND THIS POINT ######################################### build: docker build -t $(CONTAINER) . build-nocache: docker build --no-cache -t $(CONTAINER) . run: docker run $(STARTOPT) bash: docker exec -i -t $(CONTNAME) /bin/bash stop: docker stop $(CONTNAME) delete: docker rm $(CONTNAME) clear: docker rmi -f $(CONTAINER) install: docker run --restart=always $(STARTOPT)