1
0
mirror of https://github.com/rancher/os.git synced 2025-05-19 05:20:07 +00:00
os/cmd/systemdocker/system-docker.go
Sven Dowideit 0ccc5ad735 Redo logging so its a little more capable
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-07-13 12:44:47 +10:00

24 lines
377 B
Go

package systemdocker
import (
"os"
"github.com/docker/docker/docker"
"github.com/rancher/os/config"
"github.com/rancher/os/log"
)
func Main() {
log.SetLevel(log.DebugLevel)
if os.Geteuid() != 0 {
log.Fatalf("%s: Need to be root", os.Args[0])
}
if os.Getenv("DOCKER_HOST") == "" {
os.Setenv("DOCKER_HOST", config.SystemDockerHost)
}
docker.RancherOSMain()
}