docker-gen icon indicating copy to clipboard operation
docker-gen copied to clipboard

Add Links structure

Open ocorbier opened this issue 10 years ago • 1 comments

Hi, i would like use the "--link" parameter(s) of a container in the emit structure. Something like the Env Field of RuntimeContainer. thank's in advance

ocorbier avatar Nov 02 '15 17:11 ocorbier

Not sure if this is possible. I think --links just sets up hosts file entries and I don't think those are exposed through the docker API directly. It might be possible to use the docker cp command to get the contents of /etc/hosts on a container though.

jwilder avatar Jan 02 '16 23:01 jwilder