diff options
author | Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp> | 2020-01-09 13:57:01 +0900 |
---|---|---|
committer | Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp> | 2020-01-09 13:57:01 +0900 |
commit | 5990f0f142b8771865293f06309ea48a8c167695 (patch) | |
tree | b329298cccd8781501183c07109d804ed0218ba0 /pkg | |
parent | c99b413abbc74f6f7e126d8bca58f44a3fcd9c2d (diff) | |
download | podman-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>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/rootlessport/rootlessport_linux.go | 1 |
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 |