docker:containers:assign_a_hostname_to_the_container
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docker:containers:assign_a_hostname_to_the_container [2020/05/13 08:28] – peter | docker:containers:assign_a_hostname_to_the_container [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Docker - Containers - Assign a hostname to the container ====== | ====== Docker - Containers - Assign a hostname to the container ====== | ||
- | |||
- | The value supplied to the **--hostname** command is set inside **/ | ||
- | |||
- | Consequently, | ||
- | |||
- | It plays a role in configuring container DNS and can be helpful while in the learning stages of a multi-container setup. | ||
- | |||
- | It is not easy to access from outside the container, but it will appear in the container' | ||
<code bash> | <code bash> | ||
Line 20: | Line 12: | ||
- | While **< | + | <WRAP info> |
+ | **NOTE: | ||
+ | |||
+ | The value supplied to the **--hostname** command is set inside **/ | ||
+ | |||
+ | Consequently, it appears in the command prompt of the container. | ||
+ | |||
+ | It plays a role in configuring container DNS. | ||
+ | |||
+ | It is not easy to access from outside the container, but it will appear in the container' | ||
+ | </ | ||
docker/containers/assign_a_hostname_to_the_container.1589358483.txt.gz · Last modified: 2020/07/15 09:30 (external edit)