docs/commands/restart.go

15 lines
337 B
Go

package commands
import (
"github.com/docker/machine/libmachine/log"
"github.com/codegangsta/cli"
)
func cmdRestart(c *cli.Context) {
if err := runActionWithContext("restart", c); err != nil {
log.Fatal(err)
}
log.Info("Restarted machines may have new IP addresses. You may need to re-run the `docker-machine env` command.")
}