Skip to content

Instantly share code, notes, and snippets.

@rob-murray
Last active June 12, 2017 00:23
Show Gist options
  • Save rob-murray/67411be2efff20e7c8ce to your computer and use it in GitHub Desktop.
Save rob-murray/67411be2efff20e7c8ce to your computer and use it in GitHub Desktop.
docker flow; commands i run to build and deploy a container
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