Add create and start command for container lifecycle

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2016-05-13 16:54:16 -07:00
parent 75fb70be01
commit 3fe7d7f31e
13 changed files with 209 additions and 29 deletions
+11
View File
@@ -29,6 +29,13 @@ const (
// Destroyed is the status that denotes the container does not exist.
Destroyed
// Stopped is the status that denotes the container does not have a created or running process.
Stopped
// Initialized is the status where the container has all the namespaces created but the user
// process has not been start.
Initialized
)
func (s Status) String() string {
@@ -43,6 +50,10 @@ func (s Status) String() string {
return "paused"
case Destroyed:
return "destroyed"
case Stopped:
return "stopped"
case Initialized:
return "initialized"
default:
return "unknown"
}