diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-02-06 16:51:05 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2018-02-08 06:42:21 -0500 |
commit | 3921f10a729054c23296f392b0f271c1ac5e5770 (patch) | |
tree | b129bb402157b23eb4f8228818cc94d87b9fd88b /cmd/podman/start.go | |
parent | 8fdccb77648f5b772c6bae98fce4734b1a54ed4a (diff) | |
download | podman-3921f10a729054c23296f392b0f271c1ac5e5770.tar.gz podman-3921f10a729054c23296f392b0f271c1ac5e5770.tar.bz2 podman-3921f10a729054c23296f392b0f271c1ac5e5770.zip |
cleanup network stack as well as storage when container shuts down.
This patch will cleanup the network stack when the container exits
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/start.go')
-rw-r--r-- | cmd/podman/start.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/start.go b/cmd/podman/start.go index 0dad5e237..18e8f7766 100644 --- a/cmd/podman/start.go +++ b/cmd/podman/start.go @@ -138,6 +138,10 @@ func startCmd(c *cli.Context) error { } else { exitCode = int(ecode) } + if lastError != nil { + fmt.Fprintln(os.Stderr, lastError) + } + lastError = ctr.Cleanup() } return lastError } |