mirror of https://github.com/docker/docs.git
Merge pull request #856 from slashk/env-hangs-on-stopped-machine
fixes #855 for docker-machine env on stopped machines
This commit is contained in:
commit
5f573a81d4
|
@ -673,6 +673,10 @@ func cmdEnv(c *cli.Context) {
|
|||
log.Fatal(err)
|
||||
}
|
||||
|
||||
if cfg.machineUrl == "" {
|
||||
log.Fatalf("%s is not running. Please start this with docker-machine start %s", cfg.machineName, cfg.machineName)
|
||||
}
|
||||
|
||||
dockerHost := cfg.machineUrl
|
||||
if c.Bool("swarm") {
|
||||
if !cfg.SwarmOptions.Master {
|
||||
|
|
Loading…
Reference in New Issue