Skip to content
This repository was archived by the owner on Dec 17, 2021. It is now read-only.

Commit 67b9ec6

Browse files
committed
commands/restart: Add
1 parent 3cdb4b1 commit 67b9ec6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

commands/restart.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package commands
2+
3+
import (
4+
"github.com/docker/machine/libmachine"
5+
"github.com/docker/machine/libmachine/log"
6+
)
7+
8+
func cmdRestart(c CommandLine, api libmachine.API) error {
9+
if err := runAction("restart", c, api); err != nil {
10+
return err
11+
}
12+
13+
log.Info("Restarted machines may have new IP addresses. You may need to re-run the `docker-machine env` command.")
14+
15+
return nil
16+
}

0 commit comments

Comments
 (0)