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.

DockerAdvent Calendar 2014

Day 20

docker-registry 0.9.0のREADMEから

Last updated at Posted at 2014-12-20

dockerのimageをpush/pullしたり検索したりできるregistry機能を提供するdocker-registryですが、11月に0.9.0が出ていたの知りませんでした。READMEからアップデート見てみたいと思います。

Configuration flavorsに2つ追加

ceph-s3: S3 API使ってcephをdata storeにする。
azureblob: Azure Blob Storageをdata storeにする。

もともとs3というflavorあったんですがあえてceph-s3が出来たのはちょっと違うということでしょうか。WindowsやAzureでdockerサポートされた流れでazureblobなんてのもできましたね。

debugオプションの追加

General optionsにdebugオプションが追加されました。エンドポイントの/_pingを叩くとlibralyバージョンやホストの情報など色々見れるらしいです。気になるのでちょっと見てみます。

環境変数でDEBUG=trueにします。

docker run -d -p 5000:5000 \
  --name myreg -v /var/tmp/registry:/opt/registry \
  -e DEBUG=true \
  registry:0.9.0

こんな感じのでました。jsonで出力されるのでjqで整形してます。

$ curl -s 192.168.59.103:5000/_ping | jq "."
{
  "host": [
    "Linux",
    "d723b307fcab",
    "3.16.7-tinycore64",
    "#1 SMP Tue Dec 16 23:03:39 UTC 2014",
    "x86_64",
    "x86_64"
  ],
  "launch": [
    "/usr/local/bin/gunicorn",
    "--access-logfile",
    "-",
    "--error-logfile",
    "-",
    "--max-requests",
    "100",
    "-k",
    "gevent",
    "--graceful-timeout",
    "3600",
    "-t",
    "3600",
    "-w",
    "4",
    "-b",
    "0.0.0.0:5000",
    "--reload",
    "docker_registry.wsgi:application"
  ],
  "versions": {
    "SocketServer": "0.4",
    "argparse": "1.1",
    "backports.lzma": "0.0.3",
    "blinker": "1.3",
    "cPickle": "1.71",
    "cgi": "2.6",
    "ctypes": "1.1.0",
    "decimal": "1.70",
    "distutils": "2.7.6",
    "docker_registry.app": "0.9.0",
    "docker_registry.core": "2.0.3",
    "docker_registry.server": "0.9.0",
    "email": "4.0.3",
    "flask": "0.10.1",
    "gevent": "1.0.1",
    "greenlet": "0.4.5",
    "gunicorn": "19.1.0",
    "gunicorn.arbiter": "19.1.0",
    "gunicorn.config": "19.1.0",
    "gunicorn.six": "1.2.0",
    "jinja2": "2.7.3",
    "json": "2.0.9",
    "logging": "0.5.1.2",
    "parser": "0.5",
    "pickle": "$Revision: 72223 $",
    "platform": "1.0.7",
    "python": "2.7.6 (default, Mar 22 2014, 22:59:56) \n[GCC 4.8.2]",
    "re": "2.2.1",
    "redis": "2.10.3",
    "requests": "2.3.0",
    "requests.packages.chardet": "2.2.1",
    "requests.packages.urllib3": "dev",
    "requests.packages.urllib3.packages.six": "1.2.0",
    "requests.utils": "2.3.0",
    "rsa": "3.1.4",
    "simplejson": "3.6.2",
    "sqlalchemy": "0.9.4",
    "tarfile": "$Revision: 85213 $",
    "urllib": "1.17",
    "urllib2": "2.7",
    "werkzeug": "0.9.6",
    "yaml": "3.11",
    "zlib": "1.0"
  }
}

また他にもadvanced features documentationというのがあったので時間のあるときに見てみようと思います。
以上です

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?