File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -139,8 +139,9 @@ A container receives an IP address out of the IP subnet of the network.
139139The Docker daemon performs dynamic subnetting and IP address allocation for containers.
140140Each network also has a default subnet mask and gateway.
141141
142- When a container starts, it can only attach to a single network, using the `--network` flag.
143- You can connect a running container to additional networks using the `docker network connect` command.
142+ You can connect a running container to multiple networks,
143+ either by passing the `--network` flag multiple times when creating the container,
144+ or using the `docker network connect` command for already running containers.
144145In both cases, you can use the `--ip` or `--ip6` flags to specify the container's IP address on that particular network.
145146
146147In the same way, a container's hostname defaults to be the container's ID in Docker.
You can’t perform that action at this time.
0 commit comments