feat: support more options of containers

This commit is contained in:
Jason Song
2022-11-18 16:09:51 +08:00
committed by Jason Song
parent 97629ae8af
commit b9c20dcaa4
5 changed files with 11 additions and 2 deletions

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)