diff options
author | ankitjavalkar | 2017-11-08 19:48:33 +0530 |
---|---|---|
committer | ankitjavalkar | 2017-11-08 19:58:17 +0530 |
commit | 92128185b5d278b3a248f1f5eb8b824947febbce (patch) | |
tree | 3123a60646981af70c4301c15d782b066484cc02 /tasks.py | |
parent | 66cbebb858e50114e2102e95265a9f05a5058eaf (diff) | |
download | online_test-92128185b5d278b3a248f1f5eb8b824947febbce.tar.gz online_test-92128185b5d278b3a248f1f5eb8b824947febbce.tar.bz2 online_test-92128185b5d278b3a248f1f5eb8b824947febbce.zip |
- Add command to stop the container before removing it
- Fix README based on feedback
Diffstat (limited to 'tasks.py')
-rw-r--r-- | tasks.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -85,6 +85,7 @@ def stop(ctx, container=TARGET_CONTAINER_NAME, hide=True): result = ctx.run("sudo docker ps -q --filter='name={0}'".format(container)) if result.stdout: print ("** Discarding the docker container <{0}>".format(container)) + ctx.run("sudo docker stop {0}".format(container)) ctx.run("sudo docker rm {0}".format(container)) else: print("** Docker container <{0}> not found **".format(container)) |