1
0
mirror of https://github.com/rancher/os.git synced 2025-05-07 15:46:19 +00:00
os/cmd/wait/wait.go

20 lines
308 B
Go
Raw Normal View History

2015-04-04 16:55:41 +00:00
package wait
import (
"os"
"github.com/Sirupsen/logrus"
"github.com/rancherio/os/config"
"github.com/rancherio/os/docker"
)
func Main() {
_, err := docker.NewClient(config.DOCKER_HOST)
if err != nil {
logrus.Errorf("Failed to conect to Docker")
os.Exit(1)
}
logrus.Infof("Docker is ready")
}