mirror of https://github.com/docker/docs.git
22 lines
637 B
YAML
22 lines
637 B
YAML
command: docker network connect
|
|
short: Connect a container to a network
|
|
long: Connect a container to a network
|
|
usage: docker network connect [OPTIONS] NETWORK CONTAINER
|
|
pname: docker network
|
|
plink: docker_network.yaml
|
|
options:
|
|
- option: alias
|
|
default_value: '[]'
|
|
description: Add network-scoped alias for the container
|
|
- option: ip
|
|
description: IPv4 address (e.g., 172.30.100.104)
|
|
- option: ip6
|
|
description: IPv6 address (e.g., 2001:db8::33)
|
|
- option: link
|
|
default_value: '[]'
|
|
description: Add link to another container
|
|
- option: link-local-ip
|
|
default_value: '[]'
|
|
description: Add a link-local address for the container
|
|
|