Created
May 24, 2014 12:24
-
-
Save yosisa/a22ed05f36c99e175b7c to your computer and use it in GitHub Desktop.
Google Cloud Storage をバックエンドにした Docker Registry をセットアップ ref: http://qiita.com/yosisa/items/34bc8ed542a042a2cad0
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
$ gsutil mb -l ASIA gs://docker-bucket |
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
$ gcutil addinstance docker-registry |
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
$ gcutil ssh docker-registry |
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
$ curl get.docker.io | bash | |
$ sudo update-rc.d docker defaults |
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
$ sudo docker run -ti --name gcloud-config google/cloud-sdk gcloud auth login |
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
$ sudo docker run -d -e GCS_BUCKET=docker-bucket -e BOTO_PATH='/.config/gcloud/legacy_credentials/<email>/.boto' -p 5000:5000 --volumes-from gcloud-config google/docker-registry |
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
$ sudo docker tag <image_id> localhost:5000/<name>[:<tag>] | |
$ sudo docker push localhost:5000/<name>[:<tag>] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment