Add network_driver_opt to client.containers run and create#3083
Add network_driver_opt to client.containers run and create#3083milas merged 2 commits intodocker:masterfrom Skazza94:master
network_driver_opt to client.containers run and create#3083Conversation
milas
left a comment
There was a problem hiding this comment.
Thanks for the PR! This looks good to me, I just need you to sign-off on the commits before I can accept it. There's instructions at https://github.com/docker/docker-py/pull/3083/checks?check_run_id=10326470472 if you're unfamiliar with the process.
Also, I agree re: exposing more of networking_config. It doesn't feel great to piecemeal expose parts of it, but this is consistent with the other methods (e.g. Network::connect()) as you pointed out, so let's go with it! 🙃
Signed-off-by: Mariano Scazzariello <marianoscazzariello@gmail.com>
|
Hi @milas,
I agree that it is consistent with the |
This pull request adds an additional parameter to
client.containers.runandclient.containers.createcallednetwork_driver_opt.This parameter allows to specify a dict which allows to pass to the driver some custom values, and it is the same already present in
Network.connect.I requested this feature in #2896, but it was never implemented.
I think it could be useful to also export other parameters of
networking_config.