From 6ad84dc6a10da35a9f9e2259765ab35743ba0d89 Mon Sep 17 00:00:00 2001 From: Nirmoy Das Date: Fri, 18 Jan 2019 12:26:35 +0100 Subject: [PATCH] crictl: do not error out if one rm operation fails crictl would stop trying to remove other containers in case of error. crictl rm 95bfe31395ba 95bf0e31395b FATA[0000] Removing the container "95bfe31395ba" failed: rpc error: code = Unknown desc = container with ID starting with 95bfe31395ba not found: ID does not exist Signed-off-by: Nirmoy Das --- cmd/crictl/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/crictl/container.go b/cmd/crictl/container.go index 232f426fbf..5f0d304bbb 100644 --- a/cmd/crictl/container.go +++ b/cmd/crictl/container.go @@ -209,7 +209,7 @@ var removeContainerCommand = cli.Command{ containerID := context.Args().Get(i) err := RemoveContainer(runtimeClient, containerID) if err != nil { - return fmt.Errorf("Removing the container %q failed: %v", containerID, err) + fmt.Printf("Removing the container %q failed: %v\n", containerID, err) } } return nil