Lucky Container Set-Network

Set the docker network to connect the container to.

Usage

set-network [FLAGS] [OPTIONS] [network]

Flags

ArgEnvironment VariableDescription
-u, --unsetUnset the network instead of setting it. The container will use the default bridge network.

Options

ArgEnvironment VariableDescription
-c, --container<name>The name of the container to update. If not specified the default container will be used

Positionals

ArgEnvironment VariableDescription
<network>The network for the container to use

Usage

The lucky container set-network command is primarily intended to allow you to run the container in host networking mode:

$ lucky container set-network host

This means that you do not need to bind any ports for the container and that any apps running inside the container will run, from a network perspective, just as they would if they were run on the host.