I
I
iArcher2017-10-04 11:41:17
Docker
iArcher, 2017-10-04 11:41:17

How to run a binary from one docker container that is in the second docker container?

There is a container in which the tools for building the project are collected. But to build a big, big project, you need qemu 0.10, and for a small part of it, qemu 2.0.2. How to forward the path to a binary in an adjacent container?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
rustler2000, 2017-10-04
@rustler2000

Healthy, no way.
Collect a piece with one container, then collect the rest with another container.
Or cram all versions of qemu into one container.

P
planc, 2017-10-04
@planc

https://docs.docker.com/engine/admin/volumes/volum...

V
Valery, 2017-10-08
@Akuma

Figuratively:

RUN install qemu-0.10
RUN build part 1
RUN remove qemu-0.10
RUN install qemu-2.0.2
RUN build part 2

As a result, the project will be assembled. Only the second container is not needed here.
If you really really want BDSM and run the assembly in the second container, then you can transfer the project folder between containers through volumes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question