0
0

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 3 years have passed since last update.

Docker Hub pushメモ

Posted at

docker pullないしdocker builddocker-compose build)で引っ張ってくる/構築するビルド済みコンテナ(コンテナイメージ)のホスティングハブ。ビルド時間をダウンロード時間に変えられる(階層別キャッシュあり)。プロジェクトがコンパクト&ポータブルになる。

  • アカウントを作成(初回のみ)
  • 新規リポジトリを作成(USERNAME/IMAGE_NAME)
  • タグ名を指定してビルド(-t, --tag
    • docker build --tag USERNAME/IMAGE_NAME .
  • Docker Hubにログイン(初回のみ)
    • docker login
  • Docker Hubにアップロード(push)
    • docker push USERNAME/IMAGE_NAME
  • 確認
    • docker pull USERNAME/IMAGE_NAME
    • DockerfileFROM USERNAME/IMAGE_NAME
    • docker-compose.ymlimage: USERNAME/IMAGE_NAME

相当な容量食うだろうに無料しゅごい...(無料の場合プライベートは1リポジトリのみ、料金体系)。

参考

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?