Can I use docker to push a binary file from one container to another container?
For example, I have 2 containers:
I need both of these containers to install similar versions of git. Unfortunately, the sles container does not have the git version that I need.
I want to deploy the git container as follows:
$ cat Dockerfile FROM ubuntu:14.04 MAINTAINER spuder RUN apt-get update RUN apt-get install -yq git CMD /usr/bin/git
Then bind the centos6 and sles11 containers to the git container so that they both have access to the git binary without experiencing problems installing it.
I am having the following issues:
- You cannot associate a container with another container not running
- I'm not sure what docker containers are supposed to be used.
Looking at the docker documentation , it looks like related containers have common environment variables and ports, but not necessarily access to every entry point.
How can I bind the git container so that the cent and sles containers can access this command? Is it possible?
source share