// CmdNetworkDisconnect disconnects a container from a network
//
// Usage: docker network disconnect <NETWORK> <CONTAINER>
CmdNetworkDisconnect disconnects a container from a network

docker network disconnect  
// CmdNetworkDisconnect disconnects a container from a network // // Usage : docker network disconnect <NETWORK > <CONTAINER >
func (cli *DockerCli) CmdNetworkDisconnect(args ...string) error {
	cmd := Cli.Subcmd("network disconnect", []string{"NETWORK CONTAINER"}, "Disconnects container from a network", false)
	cmd.Require(flag.Exact, 2)
	err := cmd.ParseFlags(args, true)
	if err != nil {
		return err
	}
	nc := types.NetworkConnect{Container: cmd.Arg(1)}
	_, _, err = readBody(cli.call("POST", "/networks/"+cmd.Arg(0)+"/disconnect", nc, nil))
	return err
}
func ( cli * DockerCli ) CmdNetworkDisconnect ( args ... string ) error { cmd := Cli . Subcmd ( " " , [ ] string { " " } , " " , false ) cmd . Require ( flag . Exact , 2 ) err := cmd . ParseFlags ( args , true ) if err != nil { return err } nc := types . NetworkConnect { Container : cmd . Arg ( 1 ) } _ , _ , err = readBody ( cli . call ( " " , " " + cmd . Arg ( 0 ) + " " , nc , nil ) ) return err }
CmdNetworkDisconnect disconnects a container from a network
CmdNetworkDisconnect disconnects a container from a network