Lets first log into the server and see what's in the registry_data
volume.
Server:
1
2
3
4
| root@apple:~# docker volume inspect registry_data | awk '/Mountpoint/ {print $2}'
"/var/lib/docker/volumes/registry_data/_data",
root@apple:~# du -sh /var/lib/docker/volumes/registry_data/_data
4.0K /var/lib/docker/volumes/registry_data/_data
|
Now lets try to actually push something there. We'll pull down
hello-world
, tag it with the new name
registry.willschenk.com/hello-world
and then push it.
Client:
1
2
3
| docker pull hello-world
docker tag hello-world:latest registry.willschenk.com/hello-world
docker push registry.willschenk.com/hello-world
|
Now back on the server:
1
2
| root@apple:~# du -sh /var/lib/docker/volumes/registry_data/_data
148K /var/lib/docker/volumes/registry_data/_data
|
We've gone from 4.0K
to 148K
so something happened!
And if we check over the api itself:
1
| curl -u registry-user:password https://registry.willschenk.com/v2/_catalog | jq
|
1
2
3
4
5
| {
"repositories": [
"hello-world"
]
}
|