nerdctl cp command in MacOS always fail to find GNU tar #3291
-
I'm using MacOS on Apple Silicon and nerdctl cp command always tells me that /bin/tar as GNU tar is not found. The message is written as below. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
-
As a workaround you can install GNU tar manually: $ rdctl shell sudo apk add tar
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
(1/2) Installing libacl (2.3.1-r0)
(2/2) Installing tar (1.34-r0)
Executing busybox-1.35.0-r17.trigger
OK: 311 MiB in 95 packages Unfortunately this will be wiped out every time the VM is booted (because the |
Beta Was this translation helpful? Give feedback.
-
Thank you for the kind answers! I wish both of those would be marked as answer, but seems only one of them could 😢 |
Beta Was this translation helpful? Give feedback.
nerdctl
runs inside the VM, which only has busybox tar at the moment. We should be able to install GNU tar in the VM pretty easily, which should fix this issue. I'm going to create an issue from this so we can track this work. Thanks for finding this!