We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a9996ab + caa52af commit dba49fbCopy full SHA for dba49fb
cmd/crictl/container.go
@@ -304,7 +304,7 @@ var removeContainerCommand = cli.Command{
304
}
305
if resp.GetStatus().GetState() == pb.ContainerState_CONTAINER_RUNNING {
306
if ctx.Bool("force") {
307
- if err := RemoveContainer(runtimeClient, id); err != nil {
+ if err := StopContainer(runtimeClient, id, 0); err != nil {
308
logrus.Errorf("stopping the container %q failed: %v", id, err)
309
errored = true
310
continue
0 commit comments