mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Update index.md (#4532)
add emphasis automatic service discovery on the default network and user-defined networks
This commit is contained in:
committed by
Misty Stanley-Jones
parent
5d6f807187
commit
e0a5dffa69
@@ -196,9 +196,9 @@ $ docker network inspect bridge
|
||||
```
|
||||
|
||||
Containers connected to the default `bridge` network can communicate with each
|
||||
other by IP address. Docker does not support automatic service discovery on the
|
||||
other by IP address. **Docker does not support automatic service discovery on the
|
||||
default bridge network. If you want containers to be able to resolve IP addresses
|
||||
by container name, you should use user-defined networks instead. You can link
|
||||
by container name, you should use _user-defined networks_ instead**. You can link
|
||||
two containers together using the legacy `docker run --link` option, but this
|
||||
is not recommended in most cases.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user