wait.go 308 B

1234567891011121314151617181920
  1. package wait
  2. import (
  3. "os"
  4. "github.com/Sirupsen/logrus"
  5. "github.com/rancherio/os/config"
  6. "github.com/rancherio/os/docker"
  7. )
  8. func Main() {
  9. _, err := docker.NewClient(config.DOCKER_HOST)
  10. if err != nil {
  11. logrus.Errorf("Failed to conect to Docker")
  12. os.Exit(1)
  13. }
  14. logrus.Infof("Docker is ready")
  15. }