使用REGISTRY REST API从私有存储库中提取Docker镜像

时间:2017-03-29 00:26:05

标签: docker boot2docker docker-registry

我设置了一个私有的docker注册表(localhost:5000)并在那里推送了一个图像(busy_box_r:latest)。

现在我尝试使用以下命令从私人注册表中提取图像:

docker pull localhost:5000 / busybox_r:latest

工作正常,我可以通过运行命令验证它:

Mono: DllImport attempting to load: 'libdl.so'.
Mono: DllImport error loading library '/usr/share/foo/bin/x86/Debug/libdl.so': '/usr/share/foo/bin/x86/Debug/libdl.so: cannot open shared object file: No such file or directory'.
Mono: DllImport error loading library '/usr/share/foo/bin/x86/Debug/libdl.so': '/usr/share/foo/bin/x86/Debug/libdl.so: cannot open shared object file: No such file or directory'.
Mono: DllImport error loading library '/usr/lib/libdl.so': '/usr/lib/libdl.so: cannot open shared object file: No such file or directory'.
Mono: DllImport error loading library '/usr/lib/libdl.so': '/usr/lib/libdl.so: cannot open shared object file: No such file or directory'.
Mono: DllImport loaded library 'libdl.so'.
Mono: DllImport searching in: 'libdl.so' ('libdl.so').
Mono: Searching for 'dlopen'.
Mono: Probing 'dlopen'.
Mono: Found as 'dlopen'.
Mono: DllImport attempting to load: '__Internal'.
Mono: DllImport loaded library '(null)'.
Mono: DllImport searching in: '__Internal' ('(null)').
Mono: Searching for 'LoadLibrary'.
Mono: Probing 'LoadLibrary'.
Mono: Could not find 'LoadLibrary' due to 'mono: undefined symbol: LoadLibrary'.
Mono: Probing 'LoadLibrary'.
Mono: Could not find 'LoadLibrary' due to 'mono: undefined symbol: LoadLibrary'.
Mono: Probing 'LoadLibraryA'.
Mono: Could not find 'LoadLibraryA' due to 'mono: undefined symbol: LoadLibraryA'.
Mono: Probing 'LoadLibraryA'.
Mono: Could not find 'LoadLibraryA' due to 'mono: undefined symbol: LoadLibraryA'.

REPOSITORY TAG IMAGE ID CREATED SIZE

localhost:5000 / busybox_r最新00f017a8c2a6 2周前1.11 MB

现在我正在尝试使用REGISTRY REST API:

我收到了清单文件:http://192.168.99.100:5000/v2/busybox_r/manifests/latest

&安培;还下载了blob文件(fs图层):

wget http://192.168.99.100:5000/v2/busybox_r/blobs/sha256:04176c8b224aa0eb9942af765f66dae866f436e75acef028fe44b8a98e045515

但这只是一个文件(包含相关的二进制数据)。如何加载此blob文件,以便我可以通过运行此命令在本地系统上看到相应的图像:

docker@default:~$ docker images

0 个答案:

没有答案