Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
| ... | ... |
@@ -15,7 +15,7 @@ import ( |
| 15 | 15 |
"github.com/Sirupsen/logrus" |
| 16 | 16 |
containerd "github.com/docker/containerd/api/grpc/types" |
| 17 | 17 |
"github.com/docker/docker/pkg/ioutils" |
| 18 |
- "github.com/opencontainers/runtime-spec/specs-go" |
|
| 18 |
+ specs "github.com/opencontainers/runtime-spec/specs-go" |
|
| 19 | 19 |
"github.com/tonistiigi/fifo" |
| 20 | 20 |
"golang.org/x/net/context" |
| 21 | 21 |
) |
| ... | ... |
@@ -70,7 +70,7 @@ func (ctr *container) clean() error {
|
| 70 | 70 |
func (ctr *container) cleanProcess(id string) {
|
| 71 | 71 |
if p, ok := ctr.processes[id]; ok {
|
| 72 | 72 |
for _, i := range []int{syscall.Stdin, syscall.Stdout, syscall.Stderr} {
|
| 73 |
- if err := os.Remove(p.fifo(i)); err != nil {
|
|
| 73 |
+ if err := os.Remove(p.fifo(i)); err != nil && !os.IsNotExist(err) {
|
|
| 74 | 74 |
logrus.Warnf("libcontainerd: failed to remove %v for process %v: %v", p.fifo(i), id, err)
|
| 75 | 75 |
} |
| 76 | 76 |
} |