feat: support more options of containers

This commit is contained in:
Jason Song authored and Jason Song committed 2022-11-22 14:42:12 +08:00
1 parent 97629ae8af
commit b9c20dcaa4
5 files changed
+11 -2

No files matched your search

+3
View File
@@ -57,6 +57,8 @@ type NewContainerInput struct {
UsernsMode string
Platform string
Options string
AutoRemove bool
}
// FileEntry is a file to copy to a container
@@ -475,6 +477,7 @@ func (cr *containerReference) create(capAdd []string, capDrop []string) common.E
NetworkMode: container.NetworkMode(input.NetworkMode),
Privileged: input.Privileged,
UsernsMode: container.UsernsMode(input.UsernsMode),
AutoRemove: input.AutoRemove,
}
logger.Debugf("Common container.HostConfig ==> %+v", hostConfig)