mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Restored dockerd from merge
This commit is contained in:
parent
2f84bab879
commit
24ee152481
1 changed files with 24 additions and 0 deletions
24
dockerd/dockerd.go
Normal file
24
dockerd/dockerd.go
Normal file
|
@ -0,0 +1,24 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"flag"
|
||||
"github.com/dotcloud/docker/server"
|
||||
"github.com/dotcloud/docker"
|
||||
)
|
||||
|
||||
func main() {
|
||||
if docker.SelfPath() == "/sbin/init" {
|
||||
// Running in init mode
|
||||
docker.SysInit()
|
||||
return
|
||||
}
|
||||
flag.Parse()
|
||||
d, err := server.New()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
if err := d.ListenAndServe(); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue