mirror of
https://github.com/docker/cli.git
synced 2026-09-27 17:56:04 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user