1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 06:40:31 +00:00

Update godeps

This commit is contained in:
Darren Shepherd
2015-02-17 14:30:18 -07:00
parent 9d8110513e
commit 11a11ca3d1
44 changed files with 15266 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
package user
import (
"os"
"strings"
"syscall"
log "github.com/Sirupsen/logrus"
)
func SystemDocker() {
var newEnv []string
for _, env := range os.Environ() {
if !strings.HasPrefix(env, "DOCKER_HOST=") {
newEnv = append(newEnv, env)
}
}
newEnv = append(newEnv, "DOCKER_HOST=unix:///var/run/system-docker.sock")
os.Args[0] = "/usr/bin/docker"
if err := syscall.Exec(os.Args[0], os.Args, newEnv); err != nil {
log.Fatal(err)
}
}