Created
April 22, 2016 09:03
-
-
Save nobonobo/b5354517aa32d6fd382e48197d882003 to your computer and use it in GitHub Desktop.
docker ang golang
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
| # docker の GC 以下のコマンドをsystemdのtimerか、crondにセット | |
| $(docker ps -f status=exited -q) | xargs -r docker rm; $(docker images --filter "dangling=true" -q) | xargs -r rmi | |
| # go-1.6.2 をdocker経由で使う。本物と違うのは$PWDより親フォルダにアクセスできない(/tmpも) | |
| alias go='docker run -it -v $PWD:$PWD -w $PWD golang:1.6.2-alpine go' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment