This repository has been archived by the owner on May 12, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vc: stop container should change container state at last
Otherwise if we fail to stop it, container state is set as StateStopped. And future force stop will just be ignored. Then when we force delete the container, we are deleting it without actually cleaning up container resources especially the host shared mounts, which would be removed by agent cleanup code and we endup removing container volume contents unexpectedly. Fixes: #2345 Signed-off-by: Peng Tao <[email protected]>
- Loading branch information