Last active
June 12, 2017 00:23
-
-
Save rob-murray/67411be2efff20e7c8ce to your computer and use it in GitHub Desktop.
docker flow; commands i run to build and deploy a container
This file contains 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
boot2docker start | |
export etc | |
docker images | |
docker build -t robmurray/name:tag . # build current | |
docker run -P --name foo robmurray/name:tag # test | |
docker kill # above | |
docker push robmurray/name:tag | |
# switch to docker-machine | |
eval "$(docker-machine env {machine})" | |
docker stop current # stop current container # downtime :( | |
docker run -d -p host:container --name tag robmurray/name:tag # uptime :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment