mirror of
https://github.com/rancher/os.git
synced 2025-09-06 17:22:34 +00:00
Wait for userdocker to start
This commit is contained in:
19
cmd/wait/wait.go
Normal file
19
cmd/wait/wait.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package wait
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
"github.com/rancherio/os/config"
|
||||
"github.com/rancherio/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")
|
||||
}
|
Reference in New Issue
Block a user