You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use to force to remove the running container, the containergmt.Remove function will remove the cache, key dir and the nameToID mapping.
mgr.NameToID.Remove(c.Name())
// remove meta data
if err := mgr.Store.Remove(c.meta.Key()); err != nil {
logrus.Errorf("failed to remove container: %s meta store", c.ID())
}
// remove container cache
mgr.cache.Remove(c.ID())
Remember the Hooks? The force action will make process return exitcode. Then watch goroutine got the value from channel and call the hook stoppedAndRelease.
Issue Description
If the container is still running, you still want to remove the container. OK.
The phantom container's
meta.json
comes to you.Describe what happened:
The containermgr has two hooks which to clean and write the status into
meta.json
.When you use to force to remove the running container, the
containergmt.Remove
function will remove the cache, key dir and the nameToID mapping.Remember the Hooks? The force action will make process return exitcode. Then watch goroutine got the value from channel and call the hook
stoppedAndRelease
.The
c.Write
makes the phantom meta.json.....Describe what you expected to happen:
The
/var/lib/pouch/containers/{containerID}
should be removed.How to reproduce it (as minimally and precisely as possible):
Run the above script and
pouch ps
Anything else we need to know?:
I think we need to upgrade the hook. :)
Environment:
pouch version
):uname -a
):The text was updated successfully, but these errors were encountered: