mirror of
https://github.com/containers/podman.git
synced 2025-10-26 02:35:43 +08:00
v2podman run
add the ability to run a container Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
@ -6,6 +6,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/containers/libpod/libpod/define"
|
||||
"github.com/containers/libpod/pkg/specgen"
|
||||
)
|
||||
|
||||
type WaitOptions struct {
|
||||
@ -224,3 +225,23 @@ type ContainerListOptions struct {
|
||||
Sync bool
|
||||
Watch uint
|
||||
}
|
||||
|
||||
// ContainerRunOptions describes the options needed
|
||||
// to run a container from the CLI
|
||||
type ContainerRunOptions struct {
|
||||
Detach bool
|
||||
DetachKeys string
|
||||
ErrorStream *os.File
|
||||
InputStream *os.File
|
||||
OutputStream *os.File
|
||||
Rm bool
|
||||
SigProxy bool
|
||||
Spec *specgen.SpecGenerator
|
||||
}
|
||||
|
||||
// ContainerRunReport describes the results of running
|
||||
//a container
|
||||
type ContainerRunReport struct {
|
||||
ExitCode int
|
||||
Id string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user