Merge pull request #3201 from jpoimboe/libvirt-prereq-network

Set hostname and IP address from dockerinit
Upstream-commit: f9328ad9cc5ecf2b1fcbf0c5b181907141149e4f
Component: engine
This commit is contained in:
Victor Vieux
2013-12-13 10:38:17 -08:00
4 changed files with 62 additions and 20 deletions
+5 -1
View File
@@ -574,7 +574,11 @@ func (container *Container) Start() (err error) {
// Networking
if !container.Config.NetworkDisabled {
params = append(params, "-g", container.network.Gateway.String())
network := container.NetworkSettings
params = append(params,
"-g", network.Gateway,
"-i", fmt.Sprintf("%s/%d", network.IPAddress, network.IPPrefixLen),
)
}
// User