Skip to content

Instantly share code, notes, and snippets.

@flannon
Last active February 24, 2018 17:16
Show Gist options
  • Save flannon/cb4e3459fef74f1227e1b6f2b3631b9c to your computer and use it in GitHub Desktop.
Save flannon/cb4e3459fef74f1227e1b6f2b3631b9c to your computer and use it in GitHub Desktop.
Notes on using Docker
# To start an interactive container and set it to be removed when it's done, allocate a volume to the container,
# map the the current working directory to /tmp on the containter, and install go 1.9
docker container run -it --rm -v $PWD:/tmp -w /tmp golang:1.9 sh -c "go get -d -v -t && go build -v -o go-demo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment