service.go 468 B

1234567891011121314151617
  1. // +build experimental
  2. package client
  3. import (
  4. "os"
  5. nwclient "github.com/docker/libnetwork/client"
  6. )
  7. // CmdService is used to manage network services.
  8. // service command is user to publish, attach and list a service from a container.
  9. func (cli *DockerCli) CmdService(args ...string) error {
  10. nCli := nwclient.NewNetworkCli(cli.out, cli.err, nwclient.CallFunc(cli.callWrapper))
  11. args = append([]string{"service"}, args...)
  12. return nCli.Cmd(os.Args[0], args...)
  13. }