wait.go 323 B

123456789101112131415161718192021
  1. package wait
  2. import (
  3. "os"
  4. "github.com/rancher/os/config"
  5. "github.com/rancher/os/pkg/docker"
  6. "github.com/rancher/os/pkg/log"
  7. )
  8. func Main() {
  9. log.InitLogger()
  10. _, err := docker.NewClient(config.DockerHost)
  11. if err != nil {
  12. log.Errorf("Failed to connect to Docker")
  13. os.Exit(1)
  14. }
  15. log.Infof("Docker is ready")
  16. }