0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

コマンドラインでDockerHubへpush

Last updated at Posted at 2019-12-26

コマンドラインで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

参考
Dockerhubへの初プッシュ - Qiita

login — Docker-docs-ja 17.06.Beta ドキュメント

tag — Docker-docs-ja 17.06.Beta ドキュメント

push — Docker-docs-ja 17.06.Beta ドキュメント

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?