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

fix extra_hosts in documentation

Open nanervax opened this issue 8 years ago • 1 comments

Please, specify format extra_hosts in section "run container" in documentation, Dict format is uncomfortable, because key is hostname, but we can have multiply networks in container, and with dict it imposiible, but i had read docker documentation and try to write ['foo:127.0.102.43', 'bar:23.43.54.1'], result is successful! I had try with any iterable object of the form ['hostname: ip_addr' for item in items] and it works! I think that it needs to be documented, thank you

nanervax avatar Feb 17 '18 19:02 nanervax

Also works for me

RoxanaTapia avatar Sep 07 '18 09:09 RoxanaTapia