docker-gen
docker-gen copied to clipboard
Add Links structure
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
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.
The --link flag is a legacy feature and considered depreciated.