6 Commits

Author SHA1 Message Date
liuzekun
c0d5f8afd5 docker: check whether exit file is exist before kill process directly
kill process directly should check whether exit file is exist already,
for avoid kill the new process which reused this pid

Signed-off-by: liuzekun <liuzekun@huawei.com>
2020-04-10 17:13:31 +08:00
liuzekun
9f71f40e9f docker: 'delete event' is not need to process in daemon processEvent
Signed-off-by: liuzekun <liuzekun@huawei.com>
2020-04-10 11:01:16 +08:00
Grooooot
76b6c4c1b3 docker: Delete stale containerd object on start failure
containerd has two objects with regard to containers.
This is a "container" object which is metadata and a "task" which is
manging the actual runtime state.

When docker starts a container, it creates both the container metadata
and the task at the same time. So when a container exists, docker deletes
both of these objects as well.

This ensures that if, on start, when we go to create the container metadata object
in containerd, if there is an error due to a name conflict taht we go
ahead and clean that up and try again.

backport from upstream: https://github.com/moby/moby/pull/38364

Signed-off-by: Grooooot <isula@huawei.com>
2020-03-17 10:49:57 +08:00
Grooooot
e7de2c79b3 docker: add patches
Signed-off-by: Grooooot <isula@huawei.com>
2020-03-05 15:13:09 +08:00
dogsheng
be56a4fe89 Package init 2019-12-25 19:10:46 +08:00
overweight
6138d366d1 Package init 2019-09-30 10:37:25 -04:00