3 ms·
> Or, if you use Docker, you can use docker cp to copy some static tools (e.g. busybox) to a running container and check what’s going on. I tried this recently
by throwaway894345 5y ago
> Or, if you use Docker, you can use docker cp to copy some static tools (e.g. busybox) to a running container and check what’s going on.
I tried this recently with `kubectl cp` for my scratch image and it turns out that command will fail if the target container lacks a `tar` program in its PATH. I guess under the covers it's just doing a `kubectl exec <pod> -- /bin/tar ...` on the file rather than asking the kubelet to untar the file into the target container's filesystem.