docker(1.5.1) 神器 (3.x) 注册表管理
docker(1.5.1) artifactory (3.x) registry management
docker注册表很快就变大了,有没有办法清理注册表?
有没有办法合并所有依赖层,我想减少下载图像的时间
有没有办法拉取具体的依赖层:
8b44529354f3: Download complete
8b9b56bb19d4: Download complete
79b1e69a4835: Download complete
- 你能恢复 docker 推送吗?
好像是面试题。有趣的。
无法回答所有问题,但请尝试回答其中的一些问题。如果有更好的解决方案,稍后会更新。
The docker registry has gotten huge pretty quickly, is there a way to clean up the registry?
目前需要通过脚本来完成。
https://github.com/docker/docker-registry/pull/409
https://github.com/docker/docker-registry/issues/706
https://github.com/docker/docker-registry/issues/523
Is there a way to combine all the dependent layers, I'd like to cut down on how long it takes to download an image
稍后更新。
Is there a way to pull a specific dependent layer:
不行,我找不到路。如果有人知道怎么做,请告诉我。
Can you revert a docker push?
有人在 https://groups.google.com/forum/#!topic/docker-user/wNHzbFv7cDw
中回答了
这是 Docker 的真正优势之一:能够返回到之前的提交。秘诀就是docker tag
你想要的形象。
举个例子。在此示例中,我首先安装了 ping,然后提交,然后安装了 curl,并提交了。然后我回滚图像只包含 ping:
$ docker history imagename
IMAGE CREATED CREATED BY SIZE
f770fc671f11 12 seconds ago apt-get install -y curl 21.3 MB
28445c70c2b3 39 seconds ago apt-get install ping 11.57 MB
8dbd9e392a96 7 months ago 131.5 MB
$ docker tag 2844 imagename # <-- that's the secret right there
$ docker history imagename
IMAGE CREATED CREATED BY SIZE
28445c70c2b3 56 seconds ago apt-get install ping 11.57 MB
8dbd9e392a96 7 months ago 131.5 MB
docker注册表很快就变大了,有没有办法清理注册表?
有没有办法合并所有依赖层,我想减少下载图像的时间
有没有办法拉取具体的依赖层:
8b44529354f3: Download complete
8b9b56bb19d4: Download complete
79b1e69a4835: Download complete
- 你能恢复 docker 推送吗?
好像是面试题。有趣的。
无法回答所有问题,但请尝试回答其中的一些问题。如果有更好的解决方案,稍后会更新。
The docker registry has gotten huge pretty quickly, is there a way to clean up the registry?
目前需要通过脚本来完成。
https://github.com/docker/docker-registry/pull/409
https://github.com/docker/docker-registry/issues/706
https://github.com/docker/docker-registry/issues/523
Is there a way to combine all the dependent layers, I'd like to cut down on how long it takes to download an image
稍后更新。
Is there a way to pull a specific dependent layer:
不行,我找不到路。如果有人知道怎么做,请告诉我。
Can you revert a docker push?
有人在 https://groups.google.com/forum/#!topic/docker-user/wNHzbFv7cDw
中回答了这是 Docker 的真正优势之一:能够返回到之前的提交。秘诀就是docker tag
你想要的形象。
举个例子。在此示例中,我首先安装了 ping,然后提交,然后安装了 curl,并提交了。然后我回滚图像只包含 ping:
$ docker history imagename
IMAGE CREATED CREATED BY SIZE
f770fc671f11 12 seconds ago apt-get install -y curl 21.3 MB
28445c70c2b3 39 seconds ago apt-get install ping 11.57 MB
8dbd9e392a96 7 months ago 131.5 MB
$ docker tag 2844 imagename # <-- that's the secret right there
$ docker history imagename
IMAGE CREATED CREATED BY SIZE
28445c70c2b3 56 seconds ago apt-get install ping 11.57 MB
8dbd9e392a96 7 months ago 131.5 MB