chore: Add stop and rm task.

This commit is contained in:
Nicolas Carlier 2014-11-10 16:37:54 +00:00
parent 7a1fdcfdf3
commit 82a355554e

View File

@ -40,6 +40,14 @@ run:
echo "Running $(IMAGE) docker image..."
sudo docker run $(docker_run_flags) --name $(APPNAME) $(IMAGE)
stop:
echo "Stopping container $(APPNAME) ..."
-sudo docker stop $(APPNAME)
rm:
echo "Deleting container $(APPNAME) ..."
-sudo docker rm $(APPNAME)
shell:
echo "Running $(IMAGE) docker image with shell access..."
sudo docker run $(docker_run_flags) --entrypoint="/bin/bash" $(IMAGE) -c /bin/bash