1
0
mirror of https://github.com/rancher/os.git synced 2025-05-06 15:16:19 +00:00
os/cmd/wait/wait.go
2018-09-19 17:18:49 +08:00

21 lines
323 B
Go

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