You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following flags aren't supported for containers using the container: networking mode:
...
--hostname
...
However, it then follows with an example:
$ docker run --rm -it --network container:redis example/redis-cli -h 127.0.0.1
It appears to me that this container is using the container: networking mode and using the --hostname flag (via -h). However, according to the documentation, this is unsupported.
Either --hostname needs to be removed from the list of unsupported flags for the container: networking mode, or the example needs to be corrected. I don't know which is correct.
The text was updated successfully, but these errors were encountered:
Is this a docs issue?
Type of issue
Information is incorrect
Description
In https://docs.docker.com/engine/network/#container-networks, it says:
However, it then follows with an example:
It appears to me that this container is using the
container:
networking mode and using the--hostname
flag (via-h
). However, according to the documentation, this is unsupported.Location
https://docs.docker.com/engine/network/#container-networks
Suggestion
Either
--hostname
needs to be removed from the list of unsupported flags for thecontainer:
networking mode, or the example needs to be corrected. I don't know which is correct.The text was updated successfully, but these errors were encountered: