Last active
March 31, 2016 09:02
-
-
Save pascalmouret/a4b31c0e9815b9969f4260e0098ce3e9 to your computer and use it in GitHub Desktop.
Scripts to start / kill docker container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Two scripts to start / kill docker with container | |
# start script: | |
#!/bin/bash | |
docker-machine start default; | |
eval "$(docker-machine env default)"; | |
docker start $1; | |
docker ps; | |
# kill script: | |
#!/bin/bash | |
eval "$(docker-machine env default)"; | |
docker stop $1; | |
docker ps; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment