Last active
February 24, 2018 17:16
-
-
Save flannon/cb4e3459fef74f1227e1b6f2b3631b9c to your computer and use it in GitHub Desktop.
Notes on using Docker
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
# 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