P
P
Pal_g2020-06-03 11:33:18
Docker
Pal_g, 2020-06-03 11:33:18

How to forward a file to a container inside a container?

Colleagues, help to understand!
The question appeared while running gitlab-runner in a container. When I started to figure it out, the problem turned out to be in docker itself. The bottom line is this:
I launch a docker container, forward /var/run/docker.sock into it (this is necessary for docker to work inside the container with gitlab-runner) and a file from the /123 directory (the directory will be /456 inside the container). Next, inside the container, I launch another one (for example, nginx:latest), into which I also transfer the file from the /456 directory (the directory will be /789 inside the nginx container). In the last nginx container, a directory with the name of the file appears instead of a file.
What could be the problem?
5ed7601511905857742163.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ISE73, 2020-06-03
@ISE73


https://docs.docker.com/storage/volumes/ https: //dotsandbrackets.com/persistent-data-docker
...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question