I have docker Docker version 1.10.3, build 20f81dd
and a client docker-py==1.9.0
. I want to be able to set --net=host
(docker) or net: host
(docker-compose) setting via python client, but the docs say network_mode is available since v1.11
.
How can I emulate this behaviour via python client?