reads a file of line terminated key=value pairs, and overrides any keys
present in the file with additional pairs specified in the override parameter
for env-file and labels-file flags
validateExtraHost validates that the specified string is a valid extrahost and returns it.
ExtraHost is in the form of name:ip where the ip has to be a valid ip (ipv4 or ipv6).
for add-host flag
type PortMapping struct {
// Protocol of the port mapping. Protocol Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=runtime.Protocol" json:"protocol,omitempty"`
// Port number within the container. Default: 0 (not specified). ContainerPort int32 `protobuf:"varint,2,opt,name=container_port,json=containerPort,proto3" json:"container_port,omitempty"`
// Port number on the host. Default: 0 (not specified). HostPort int32 `protobuf:"varint,3,opt,name=host_port,json=hostPort,proto3" json:"host_port,omitempty"`
// Host IP. HostIp string `protobuf:"bytes,4,opt,name=host_ip,json=hostIp,proto3" json:"host_ip,omitempty"`
}
PortMapping specifies the port mapping configurations of a sandbox.