mirror of
https://github.com/docker/cli.git
synced 2026-01-16 20:22:36 +03:00
Fixed bug which caused 'docker stop' to crash when specifying a non-existing container.
Upstream-commit: 55a7560436d380405c807b187e67a2cd3eaf5e51 Component: engine
This commit is contained in:
@@ -64,7 +64,7 @@ func (srv *Server) CmdStop(stdin io.ReadCloser, stdout io.Writer, args ...string
|
||||
}
|
||||
fmt.Fprintln(stdout, container.Id)
|
||||
} else {
|
||||
return errors.New("No such container: " + container.Id)
|
||||
return errors.New("No such container: " + name)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user