Open kocsob opened 6 years ago
You need to provide links
as part of the networking_config
argument in create_container
. The links
parameter in HostConfig
is for legacy links, which is a deprecated feature that only applies to the default bridge
network.
And links
parameter for user defined network can be provided somehow to the high level API for client.containers.create(..)
or it works only with low level create_container(...)
?
The documentation shows something similar in create
parameters, why I am confused.
If I set the 'links' parameter it does not give an error, but it does not work as well. I think this issue comes from: https://stackoverflow.com/questions/37144357/link-containers-with-the-docker-python-api
But in High level API I cannot put the host_config parameter in create(), because
SDK version, Docker version and python version
If possible, steps or a code snippet to reproduce the issue:
The same functionality with docker command:
Relevant diff of the docker inspect:
The problem is that "Link" is 'null'. This works good with command line '--link' parameter.