github.com/rsampaio/docker@v0.7.2-0.20150827203920-fdc73cc3fc31/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 // CmdService is used to manage network services. 12 // service command is user to publish, attach and list a service from a container. 13 func (cli *DockerCli) CmdService(args ...string) error { 14 nCli := nwclient.NewNetworkCli(cli.out, cli.err, nwclient.CallFunc(cli.callWrapper)) 15 args = append([]string{"service"}, args...) 16 return nCli.Cmd(os.Args[0], args...) 17 }