func buildSandboxResource(sb libnetwork.Sandbox) *sandboxResource { r := &sandboxResource{} if sb != nil { r.ID = sb.ID() r.Key = sb.Key() r.ContainerID = sb.ContainerID() } return r }
func (container *Container) updateSandboxNetworkSettings(sb libnetwork.Sandbox) error { container.NetworkSettings.SandboxID = sb.ID() container.NetworkSettings.SandboxKey = sb.Key() return nil }