表題の件、先日のエントリでは”https://registry.hub.docker.com/“にアクセスしていたがそれで本当に良いのか?と。
■ 環境
- Docker 1.11.1
- Docker for Mac Beta
■ docker info
何気なく`docker info`を実行していたところ気になった記載。
$ docker info
Containers: 7
Running: 0
Paused: 0
Stopped: 7
Images: 8
Server Version: 1.11.1
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 46
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge null host
Kernel Version: 4.4.9-moby
Operating System: Alpine Linux v3.3
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.955 GiB
Name: moby
ID: XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX
Docker Root Dir: /var/lib/docker
Debug mode (client): false
Debug mode (server): true
File Descriptors: 15
Goroutines: 35
System Time: 2016-05-13T10:22:33.429497266Z
EventsListeners: 1
Username: withsin
Registry: https://index.docker.io/v1/
$
最後に”Registry“とある。ここにアクセスするのが正しいのでは?と思い試してみた。
$ curl -s https://index.docker.io/v1/repositories/withsin/zookeeper/tags
[
{
"layer": "3db34bba",
"name": "latest"
},
{
"layer": "9cbde483",
"name": "3.4.8"
},
{
"layer": "9b796aa3",
"name": "3.4.8-alpine"
}
]
$
先日のエントリで適当に試したものも同じように返ってくるのであろうか、試してみた。
$ curl -s https://index.docker.io/v2/withsin/zookeeper/tags/list
{
"errors": [
{
"code": "UNAUTHORIZED",
"message": "authentication required",
"detail": [
{
"Type": "repository",
"Name": "withsin/zookeeper",
"Action": "pull"
}
]
}
]
}
$
$ curl -s https://index.docker.io/v2/repositories/withsin/zookeeper/tags/
404 page not found
$
やはり”Registry“にある通り”v1“しかダメなようだ。
以上。