-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Config and HostConfig from runconfig to types/container.
- Make the API client library completely standalone. - Move windows partition isolation detection to the client, so the driver doesn't use external types. Signed-off-by: David Calavera <[email protected]>
- Loading branch information
Showing
65 changed files
with
732 additions
and
686 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package container | ||
|
||
import ( | ||
"github.com/docker/docker/api/types/strslice" | ||
"github.com/docker/go-connections/nat" | ||
) | ||
|
||
// Config contains the configuration data about a container. | ||
// It should hold only portable information about the container. | ||
// Here, "portable" means "independent from the host we are running on". | ||
// Non-portable information *should* appear in HostConfig. | ||
// All fields added to this struct must be marked `omitempty` to keep getting | ||
// predictable hashes from the old `v1Compatibility` configuration. | ||
type Config struct { | ||
Hostname string // Hostname | ||
Domainname string // Domainname | ||
User string // User that will run the command(s) inside the container | ||
AttachStdin bool // Attach the standard input, makes possible user interaction | ||
AttachStdout bool // Attach the standard output | ||
AttachStderr bool // Attach the standard error | ||
ExposedPorts map[nat.Port]struct{} `json:",omitempty"` // List of exposed ports | ||
PublishService string `json:",omitempty"` // Name of the network service exposed by the container | ||
Tty bool // Attach standard streams to a tty, including stdin if it is not closed. | ||
OpenStdin bool // Open stdin | ||
StdinOnce bool // If true, close stdin after the 1 attached client disconnects. | ||
Env []string // List of environment variable to set in the container | ||
Cmd *strslice.StrSlice // Command to run when starting the container | ||
ArgsEscaped bool `json:",omitempty"` // True if command is already escaped (Windows specific) | ||
Image string // Name of the image as it was passed by the operator (eg. could be symbolic) | ||
Volumes map[string]struct{} // List of volumes (mounts) used for the container | ||
WorkingDir string // Current directory (PWD) in the command will be launched | ||
Entrypoint *strslice.StrSlice // Entrypoint to run when starting the container | ||
NetworkDisabled bool `json:",omitempty"` // Is network disabled | ||
MacAddress string `json:",omitempty"` // Mac Address of the container | ||
OnBuild []string // ONBUILD metadata that were defined on the image Dockerfile | ||
Labels map[string]string // List of labels set to this container | ||
StopSignal string `json:",omitempty"` // Signal to stop a container | ||
} |
Oops, something went wrong.