1
0
mirror of https://github.com/rancher/os.git synced 2025-06-27 07:16:48 +00:00
os/cmd/wait/wait.go
2016-11-28 00:06:00 -08:00

20 lines
304 B
Go

package wait
import (
"os"
"github.com/Sirupsen/logrus"
"github.com/rancher/os/config"
"github.com/rancher/os/docker"
)
func Main() {
_, err := docker.NewClient(config.DockerHost)
if err != nil {
logrus.Errorf("Failed to connect to Docker")
os.Exit(1)
}
logrus.Infof("Docker is ready")
}