github.com/rentongzhang/docker@v1.8.2-rc1/api/client/service.go (about)

     1  // +build experimental
     2  
     3  package client
     4  
     5  import (
     6  	"os"
     7  
     8  	nwclient "github.com/docker/libnetwork/client"
     9  )
    10  
    11  func (cli *DockerCli) CmdService(args ...string) error {
    12  	nCli := nwclient.NewNetworkCli(cli.out, cli.err, nwclient.CallFunc(cli.callWrapper))
    13  	args = append([]string{"service"}, args...)
    14  	return nCli.Cmd(os.Args[0], args...)
    15  }