mirror of
https://github.com/rancher/os.git
synced 2025-06-23 13:37:03 +00:00
20 lines
304 B
Go
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.DOCKER_HOST)
|
|
if err != nil {
|
|
logrus.Errorf("Failed to conect to Docker")
|
|
os.Exit(1)
|
|
}
|
|
|
|
logrus.Infof("Docker is ready")
|
|
}
|