コマンドラインでimageをpush。
準備としてDocker Hubのアカウントを作っておく。
// ログインする
$ docker login
"Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one."
Username: yoshinyan
Password:
Login Succeeded
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu-ruby latest 8cfce80f0c66 14 minutes ago 127MB
// タグ設定
$ docker tag 8cfce80f0c66 yoshinyan/ubuntu-ruby
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu-ruby latest 8cfce80f0c66 15 minutes ago 127MB
yoshinyan/ubuntu-ruby latest 8cfce80f0c66 15 minutes ago 127MB
$ docker push yoshinyan/ubuntu-ruby
The push refers to repository [docker.io/yoshinyan/ubuntu-ruby]
cbdba38118ba: Pushed
e0b3afb09dc3: Mounted from library/ubuntu
6c01b5a53aac: Mounted from library/ubuntu
2c6ac8e5063e: Mounted from library/ubuntu
cc967c529ced: Mounted from library/ubuntu
latest: digest: sha256:685dd212ddc07e9dd26f829b8dae79355518bd1af7c7ad8624938854b6316b57 size: 1364
login — Docker-docs-ja 17.06.Beta ドキュメント