From 250bc3f61547c6bcdc17ffe41e8a9a0307099cc3 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 10 Sep 2013 20:15:23 +0200 Subject: [PATCH] Add a separate docker-init binary This may be used for the .dockerinit case if the main binary is not statically linked. --- docker-init/docker-init.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docker-init/docker-init.go diff --git a/docker-init/docker-init.go b/docker-init/docker-init.go new file mode 100644 index 0000000000..c368c53138 --- /dev/null +++ b/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 +}