1
0
mirror of https://github.com/rancher/os.git synced 2025-06-30 00:31:49 +00:00
os/cmd/wait/wait.go

20 lines
304 B
Go
Raw Normal View History

2015-04-04 16:55:41 +00:00
package wait
import (
"os"
"github.com/Sirupsen/logrus"
"github.com/rancher/os/config"
"github.com/rancher/os/docker"
2015-04-04 16:55:41 +00:00
)
func Main() {
2016-11-28 08:06:00 +00:00
_, err := docker.NewClient(config.DockerHost)
2015-04-04 16:55:41 +00:00
if err != nil {
2016-11-01 07:10:53 +00:00
logrus.Errorf("Failed to connect to Docker")
2015-04-04 16:55:41 +00:00
os.Exit(1)
}
logrus.Infof("Docker is ready")
}