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

21 lines
323 B
Go
Raw Normal View History

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