To avoid having to handle Joyent as a special case in generic docker tooling, it would be nice sdc do expose it's IP allocation in a coherent way with swarm (and maybe others). Especially, reporting "HostIp": "0.0.0.0" as NetworkSettings.Ports binding isn't useful here, actually allocated IP would be a nicer information.
when a container is started on Joyent with exposed port, the assigned IP is documented as
NetworkSettings.IpAddress
(simplified) docker inspect output :
please note:
Node
to document which host container is running onNetworks
NetworkSettings.IpAddress
is deprecated by docker API since 1.21same container ran with docker swarm (standalone) uses a distinct approach :
Node
information, with information on node external IPNetworkSettings.Ports
bindingsIPAddress
(deprecated) andNetworks.IPAddress
are internal bridge network addresses, to be used for more complex inter-container networks setup(simplified) docker inspect output :
To avoid having to handle Joyent as a special case in generic docker tooling, it would be nice sdc do expose it's IP allocation in a coherent way with swarm (and maybe others). Especially, reporting
"HostIp": "0.0.0.0"
asNetworkSettings.Ports
binding isn't useful here, actually allocated IP would be a nicer information.see https://github.com/jenkinsci/docker-plugin/issues/552