sysbox icon indicating copy to clipboard operation
sysbox copied to clipboard

pull private image inside sysbox container failed

Open yuanaisha opened this issue 2 years ago • 0 comments

when i pulling our private image inside sysbox container, i‘m seeing the error:

root@k8sha-worker07:~# docker pull harbor.cngb.org/stereonote_hpc_external/heqiqi_6ef1d8bd107c4c8b8b782d6d0b7d36c2_private
Using default tag: latest
latest: Pulling from stereonote_hpc_external/heqiqi_6ef1d8bd107c4c8b8b782d6d0b7d36c2_private
2d473b07cdd5: Pulling fs layer
3ffda851a05c: Pulling fs layer
25e281dc4556: Pull complete
99976762f1a9: Pull complete
7fe8b23bdee3: Pull complete
56053361d62b: Pull complete
67cbf7f69783: Pull complete
7e4e086ce513: Extracting [==================================================>]  38.99MB/38.99MB
ffabbfdc0fed: Download complete
a6bbce5c53f9: Download complete
ac16e5b56c37: Download complete
9111a8a97450: Download complete
b22ba5e6e830: Download complete
e03dc54451c1: Download complete
1bbadf690e02: Download complete
a42650eb2b24: Download complete
f3cd720fed87: Download complete
20cd7d6e870e: Download complete
ee31f2b7df42: Download complete
7249ef27f7be: Download complete
d59f2cf27075: Download complete
83ed8adc04cc: Download complete
db5ea9afa164: Download complete
552596df8147: Download complete
5f72fb76ed38: Download complete
9380e3048abe: Download complete
3d5b397f8f38: Download complete
ffe51214e77c: Download complete
ed048d54a1c2: Download complete
a112dd4bfeaa: Download complete
143f9b2471cf: Download complete
6cdbf14889f5: Download complete
5c54c19ec205: Download complete
f6622964fd1c: Download complete
17c9fdb82783: Download complete
e7a59bb564c1: Download complete
ce34da8863ff: Download complete
ef357bddbfdf: Download complete
cb8f231a22e7: Download complete
ed65c56ca19e: Download complete
d74424995781: Download complete
94fdbdc79043: Download complete
66a7d71eba3f: Download complete
98505e1b2e30: Download complete
failed to register layer: ApplyLayer exit status 1 stdout:  stderr: failed to Lchown "/opt/lib" for UID 1001282, GID 2773 (try increasing the number of subordinate IDs in /etc/subuid and /etc/subgid): lchown /opt/lib: invalid argument

here is my /etc/subuid and /etc/subgid:

root@k8sha-worker07:~# cat /etc/subuid
admin:100000:65536
root@k8sha-worker07:~# cat /etc/subgid
admin:100000:65536

then i changed /etc/subuid and /etc/subgid, restart the sysbox-mgr service ,restart sysbox container,but the error is still there.

root@k8sha-worker07:~# cat /etc/subuid
admin:100000:5000000
root@k8sha-worker07:~# cat /etc/subgid
admin:100000:5000000

When we create private image, we copy some large uid files into the image, We have many such needs,because of the large number of files, changing the uid/gid of the files in advance will bring a lot of work,

Do you have any ideas? i saw this issue ,but it is closed#443

Thank you!

yuanaisha avatar Aug 24 '23 09:08 yuanaisha