-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit 527dc5a leaves config.Namespaces empty when accessed. #1585
Copy link
Copy link
Closed
Description
@Mashimiao : The commit 527dc5a creates a problem with config.Namespaces now being initialized too late.
config := &configs.Config{
Rootfs: rootfsPath,
NoPivotRoot: opts.NoPivotRoot,
Readonlyfs: spec.Root.Readonly,
Hostname: spec.Hostname,
Labels: append(labels, fmt.Sprintf("bundle=%s", cwd)),
NoNewKeyring: opts.NoNewKeyring,
Rootless: opts.Rootless,
}
exists := false
if config.Namespaces.Contains(configs.NEWNET) {
config.Networks = []*configs.Network{
{
Type: "loopback",
},
}
}
At the point above configs.NEWNET seems empty.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels