I need a suggestion about this problem statement. I am rolling out a k8s job which uses a docker image and it does some computation, later on, I needed some folder which is basically present in a different docker image.
I want to understand how would I tackle this scenario, given I have to use a loop and copy the content from almost 30 docker images.
My thought,
- install docker in my docker images which k8s job is using, run the container, copy the content, and kill it after that.
- roll out a new job to copy the content and copy it to a mount location, which can be utilized.
I am afraid, if I have limited access to the host on which the k8s job is running, would I be able to run native docker commands.
I am just thinking out loud. Appreciate the suggestions.