summaryrefslogtreecommitdiff
path: root/pkg/domain/entities/container_ps.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-12-09 14:13:53 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2020-12-11 06:07:14 -0500
commit098e0a78856a1cc3b642300dc39f23b93e1f74a8 (patch)
tree087f36309352fb39b890ce6d7ea6b6979ea8f6b4 /pkg/domain/entities/container_ps.go
parentdd954781e6e308a0bbecfaf6699b41426100a58d (diff)
downloadpodman-098e0a78856a1cc3b642300dc39f23b93e1f74a8.tar.gz
podman-098e0a78856a1cc3b642300dc39f23b93e1f74a8.tar.bz2
podman-098e0a78856a1cc3b642300dc39f23b93e1f74a8.zip
Handle --rm when starting a container
podman start should follow the same behaviour as podman run when removing a container. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/domain/entities/container_ps.go')
-rw-r--r--pkg/domain/entities/container_ps.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/domain/entities/container_ps.go b/pkg/domain/entities/container_ps.go
index b4e8446cb..ff3b087ed 100644
--- a/pkg/domain/entities/container_ps.go
+++ b/pkg/domain/entities/container_ps.go
@@ -12,6 +12,8 @@ import (
// Listcontainer describes a container suitable for listing
type ListContainer struct {
+ // AutoRemove
+ AutoRemove bool
// Container command
Command []string
// Container creation time