I have a docker image running in Kubernetes that I suspect to contain a malicious code, unfortunately I can't download it directly from the docker hub as there is a restriction on where it can be pulled.

Is there a way to dump this container/pod to the local machine and analyze all the files/code in it?

Is there a way to intercept a request from a particular pod and inspect its content?

1 Answer 1


You can copy the files using kubectl cp.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .