netshoot icon indicating copy to clipboard operation
netshoot copied to clipboard

Unexpected error faced while pulling the docker image!!

Open Tej-Singh-Rana opened this issue 1 year ago • 3 comments

Hi,

I tried to pull the docker image and faced an unexpected error. Do you have any idea about this?

Regards,

Output: -

docker pull nicolaka/netshoot
Using default tag: latest
latest: Pulling from nicolaka/netshoot
661ff4d9561e: Pull complete 
995df079f4e4: Pull complete 
dd60ddc09193: Pull complete 
db21b8384e68: Pull complete 
0c4b97b7a9f6: Pull complete 
ab55214c6c7f: Extracting [==================================================>]  7.741MB/7.741MB
605fbab30112: Download complete 
4f4fb700ef54: Download complete 
ccf5fa44d580: Download complete 
bd3e8b5a2d54: Download complete 
76daa6c53003: Download complete 
f32b561aa773: Download complete 
b72ad7310ef5: Download complete 
a06bebda965d: Download complete 
a1436cccfd44: Download complete 
failed to register layer: ApplyLayer exit status 1 stdout:  stderr: failed to Lchown "/usr/local/bin/grpcurl" for UID 708061865, GID 708061865 (try increasing the number of subordinate IDs in /etc/subuid and /etc/subgid): lchown /usr/local/bin/grpcurl: invalid argument

Tej-Singh-Rana avatar Feb 16 '24 11:02 Tej-Singh-Rana

Works for me:

❯ docker pull nicolaka/netshoot
Using default tag: latest
latest: Pulling from nicolaka/netshoot
661ff4d9561e: Pull complete 
995df079f4e4: Pull complete 
dd60ddc09193: Pull complete 
db21b8384e68: Pull complete 
0c4b97b7a9f6: Pull complete 
ab55214c6c7f: Pull complete 
605fbab30112: Pull complete 
4f4fb700ef54: Pull complete 
ccf5fa44d580: Pull complete 
bd3e8b5a2d54: Pull complete 
76daa6c53003: Pull complete 
f32b561aa773: Pull complete 
b72ad7310ef5: Pull complete 
a06bebda965d: Pull complete 
a1436cccfd44: Pull complete 
Digest: sha256:b569665f0c32391b93f4de344f07bf6353ddff9d8c801ac3318d996db848a64c
Status: Downloaded newer image for nicolaka/netshoot:latest
docker.io/nicolaka/netshoot:latest

That said, I found some inspiration here: https://github.com/moby/moby/issues/45757

After starting the container, I had a look here:

 80c75558f0a4  ~  ls -l /usr/local/bin         
total 108556
-rwxr-xr-x    1 root     root      45314048 Aug  1  2022 calicoctl
-rwxr-xr-x    1 root     root      13606047 Mar 22  2022 ctop
-rwxr-xr-x    1 root     root      12898304 Feb  9 22:28 fortio
-rwxr-xr-x    1 70806186 70806186  24027136 Oct 24 17:14 grpcurl
-rwxrwxr-x    1 1000     1000      15298560 Jul 11  2022 termshark
 80c75558f0a4  ~  stat /usr/local/bin/grpcurl 
  File: /usr/local/bin/grpcurl
  Size: 24027136  	Blocks: 46936      IO Block: 4096   regular file
Device: 6ah/106d	Inode: 33873716    Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (708061865/ UNKNOWN)   Gid: (708061865/ UNKNOWN)
Access: 2023-10-24 17:14:57.000000000 +0000
Modify: 2023-10-24 17:14:57.000000000 +0000
Change: 2024-02-16 17:40:28.913486261 +0000
 80c75558f0a4  ~  find / -user 708061865      
/usr/local/bin/grpcurl

Looks to be an issue in the upstream tarball: https://github.com/nicolaka/netshoot/blob/2e07274d5255711334f489622108f623fc1de520/build/fetch_binaries.sh#L58-L62

I'll create a PR to patch this.

quadespresso avatar Feb 16 '24 18:02 quadespresso

Thanks for looking into this. 👍

Tej-Singh-Rana avatar Feb 16 '24 18:02 Tej-Singh-Rana

PR created: https://github.com/nicolaka/netshoot/pull/158

quadespresso avatar Feb 16 '24 18:02 quadespresso

same issue in my env, how to workaround?

fbi007130 avatar Mar 21 '24 09:03 fbi007130

Hi @fbi007130 ,

I am using the image from a year ago for my use case.

Tej-Singh-Rana avatar Mar 21 '24 10:03 Tej-Singh-Rana

I waited for Nicolaka, but it seems he is busy. He didn't merge the above PR.

Tej-Singh-Rana avatar Mar 21 '24 10:03 Tej-Singh-Rana

@Tej-Singh-Rana I merged that PR. Thanks @quadespresso.

nicolaka avatar Mar 21 '24 13:03 nicolaka