mirror of https://github.com/docker/docs.git
The generic driver shouldn't support kill since stop is not supported
Signed-off-by: David Gageot <david@gageot.net>
This commit is contained in:
parent
4bfd8ab4c1
commit
181a1d47b4
|
@ -171,8 +171,5 @@ func (d *Driver) Restart() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Driver) Kill() error {
|
func (d *Driver) Kill() error {
|
||||||
log.Debug("Killing...")
|
return errors.New("generic driver does not support kill")
|
||||||
|
|
||||||
_, err := drivers.RunSSHCommandFromDriver(d, "sudo shutdown -P now")
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue