2015-06-18 11:41:17 -04:00
|
|
|
// +build experimental
|
|
|
|
|
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
|
|
|
nwclient "github.com/docker/libnetwork/client"
|
|
|
|
)
|
|
|
|
|
2015-07-20 20:55:30 -04:00
|
|
|
// CmdService is used to manage network services.
|
|
|
|
// service command is user to publish, attach and list a service from a container.
|
2015-06-18 11:41:17 -04:00
|
|
|
func (cli *DockerCli) CmdService(args ...string) error {
|
2015-07-09 22:05:50 -04:00
|
|
|
nCli := nwclient.NewNetworkCli(cli.out, cli.err, nwclient.CallFunc(cli.callWrapper))
|
2015-06-18 11:41:17 -04:00
|
|
|
args = append([]string{"service"}, args...)
|
|
|
|
return nCli.Cmd(os.Args[0], args...)
|
|
|
|
}
|