P
P
Pavel Busel2015-04-16 19:18:31
linux
Pavel Busel, 2015-04-16 19:18:31

Is it possible to take a program out of a Docker container?

Docker allows you to link containers between themselves and the host, as well as take out files and directories. If we have a container with SSH and we need, let's say a compass or other software that we want to run inside the container with SSH, then we need to put it in the container. Will the script work if we move it to /usr/bin/compass in our container? Sockets can be linked in this way, but will such a feint work with scripts?
UPD: The crux of the matter is that you want to have 2 containers, in the first SSH in the second ruby ​​/ Java / ... and from the container with SSH run the scripts of the second container

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
polozad, 2015-04-16
@pro100Coder

ADD script.sh /script.sh in the dockerfile, when built it will put anything and everything anywhere. I hope there is no need to chew the syntax of the directive.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question