Questions tagged [docker-cp]
16 questions
0
votes
1 answer
How to `docker cp` ssh key to docker container before its entrypoint is executed
Say I have this right now:
docker run -v /root/.ssh:/root/.ssh:ro my_image
and the ENTRYPOINT for the above image is:
ENTRYPOINT ["echo", "foo"]
instead I want to do something like this:
docker run -d --name c my_image # problem: this will…
user12374570