1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00
Files
os/cmd/wait/wait.go
Daishan Peng 35ce5cd8b5 correct typo
2016-11-01 00:10:53 -07:00

20 lines
305 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.DOCKER_HOST)
if err != nil {
logrus.Errorf("Failed to connect to Docker")
os.Exit(1)
}
logrus.Infof("Docker is ready")
}