2
2

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.

ともかくDocker Registry 2.0を使ってみる

Last updated at Posted at 2015-05-08

Quick start

Registry 2.0コンテナの /tmp/registry-dev-v でマウントすれば、とりあえず使えます

docker run -p 5000:5000 -v /local/disk/path:/tmp/registry-dev registry:2.0

解説

本来なら cmd/registry/config.yml を調整した後 docker build するのが筋ですが、「ともかく、いますぐ、つかいたい!」って方向けのQuick startです

https://github.com/docker/distribution/blob/master/cmd/registry/config.yml にも書いてあるように、 storage/filesystem/rootdirectory に /tmp/registry-dev って書いてあるから、それをマウントすればOK

Docker Registry 1.0の保存先との共存

Docker Registry 1.0とはディレクトリ構成がまるで違い、共存はできません
(ディレクトリを共有することはできますが、1.0でpush、2.0からpullとか、そんなことはできません)

ですので、すべてpushし直し、となります。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?