Lucky Container Set-Network
Set the docker network to connect the container to.
Usage
set-network [FLAGS] [OPTIONS] [network]
Flags
Arg | Environment Variable | Description |
---|---|---|
-u , --unset | Unset the network instead of setting it. The container will use the default bridge network. |
Options
Arg | Environment Variable | Description |
---|---|---|
-c , --container <name> | The name of the container to update. If not specified the default container will be used |
Positionals
Arg | Environment Variable | Description |
---|---|---|
<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.