aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>2020-01-09 13:57:01 +0900
committerAkihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>2020-01-09 13:57:01 +0900
commit5990f0f142b8771865293f06309ea48a8c167695 (patch)
treeb329298cccd8781501183c07109d804ed0218ba0
parentc99b413abbc74f6f7e126d8bca58f44a3fcd9c2d (diff)
downloadpodman-5990f0f142b8771865293f06309ea48a8c167695.tar.gz
podman-5990f0f142b8771865293f06309ea48a8c167695.tar.bz2
podman-5990f0f142b8771865293f06309ea48a8c167695.zip
rootlessport: remove state dir on exit
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
-rw-r--r--pkg/rootlessport/rootlessport_linux.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/rootlessport/rootlessport_linux.go b/pkg/rootlessport/rootlessport_linux.go
index 655d1a448..88105733f 100644
--- a/pkg/rootlessport/rootlessport_linux.go
+++ b/pkg/rootlessport/rootlessport_linux.go
@@ -105,6 +105,7 @@ func parent() error {
if err != nil {
return err
}
+ defer os.RemoveAll(stateDir)
driver, err := rkbuiltin.NewParentDriver(&logrusWriter{prefix: "parent: "}, stateDir)
if err != nil {
return err