Add a separate docker-init binary
This may be used for the .dockerinit case if the main binary is not statically linked.
This commit is contained in:
parent
7fb3bfed03
commit
b8dc7b5f1a
1 changed files with 16 additions and 0 deletions
16
docker-init/docker-init.go
Normal file
16
docker-init/docker-init.go
Normal file
|
@ -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
|
||||
}
|
Loading…
Add table
Reference in a new issue