Selaa lähdekoodia

Add a separate docker-init binary

This may be used for the .dockerinit case if the main binary is not
statically linked.
Alexander Larsson 11 vuotta sitten
vanhempi
commit
b8dc7b5f1a
1 muutettua tiedostoa jossa 16 lisäystä ja 0 poistoa
  1. 16 0
      docker-init/docker-init.go

+ 16 - 0
docker-init/docker-init.go

@@ -0,0 +1,16 @@
+package main
+
+import (
+	"github.com/dotcloud/docker"
+)
+
+var (
+	GITCOMMIT string
+	VERSION   string
+)
+
+func main() {
+	// Running in init mode
+	docker.SysInit()
+	return
+}