Fix devices information struct in container

pull/6/head
Hui-Zhi 2016-07-23 09:06:59 -04:00
parent b359034817
commit d977adbb0f
1 changed files with 10 additions and 1 deletions

View File

@ -381,6 +381,15 @@ type PortMapping struct {
HostIP string HostIP string
} }
type DeviceInfo struct {
// Path on host for mapping
PathOnHost string
// Path in Container to map
PathInContainer string
// Cgroup permissions
Permissions string
}
// RunContainerOptions specify the options which are necessary for running containers // RunContainerOptions specify the options which are necessary for running containers
type RunContainerOptions struct { type RunContainerOptions struct {
// The environment variables list. // The environment variables list.
@ -388,7 +397,7 @@ type RunContainerOptions struct {
// The mounts for the containers. // The mounts for the containers.
Mounts []Mount Mounts []Mount
// The host devices mapped into the containers. // The host devices mapped into the containers.
Devices []string Devices []DeviceInfo
// The port mappings for the containers. // The port mappings for the containers.
PortMappings []PortMapping PortMappings []PortMapping
// If the container has specified the TerminationMessagePath, then // If the container has specified the TerminationMessagePath, then