mirror of https://github.com/docker/docs.git
Remove some debug
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
9e034af324
commit
cccc4efa78
|
@ -43,13 +43,11 @@ func cmdDaemon(c *cli.Context) {
|
|||
dockerHost = "unix:///var/run/docker.sock"
|
||||
}
|
||||
|
||||
utils.Debugf("---> Spawning")
|
||||
instance, err := backend.Spawn(dockerHost)
|
||||
if err != nil {
|
||||
Fatalf("spawn: %v\n", err)
|
||||
}
|
||||
|
||||
utils.Debugf("---> Attaching")
|
||||
instanceIn, instanceOut, err := instance.Attach("")
|
||||
if err != nil {
|
||||
Fatalf("attach: %v", err)
|
||||
|
@ -57,7 +55,6 @@ func cmdDaemon(c *cli.Context) {
|
|||
defer instanceOut.Close()
|
||||
go beam.Copy(app, instanceIn)
|
||||
|
||||
utils.Debugf("---> Starting")
|
||||
if err := instance.Start(); err != nil {
|
||||
Fatalf("start: %v", err)
|
||||
}
|
||||
|
@ -72,7 +69,6 @@ func doCmd(instance *beam.Object, args []string) error {
|
|||
if len(args) == 0 {
|
||||
return fmt.Errorf("no command supplied")
|
||||
}
|
||||
utils.Debugf("---> %s", args[0])
|
||||
if args[0] == "ps" {
|
||||
if len(args) != 1 {
|
||||
return fmt.Errorf("usage: ps")
|
||||
|
|
Loading…
Reference in New Issue