User Tools

Site Tools


docker:containers:assign_a_hostname_to_the_container

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docker:containers:assign_a_hostname_to_the_container [2020/05/13 09:18] peterdocker:containers:assign_a_hostname_to_the_container [2020/07/15 09:30] (current) – external edit 127.0.0.1
Line 12: Line 12:
  
  
-<WRAP center round info 60%+<WRAP info> 
-**NOTE:**  The value supplied to the **--hostname** command is set inside **/etc/hostname** and **/etc/hosts** inside the container.+**NOTE:**  **<nowiki>--name</nowiki>** and **<nowiki>--hostname</nowiki>** are both useful for identification of containers.
  
-Consequently, it appears in the command prompt.+The value supplied to the **--hostname** command is set inside **/etc/hostname** and **/etc/hosts** inside the container. 
 + 
 +Consequently, it appears in the command prompt of the container.
  
 It plays a role in configuring container DNS. It plays a role in configuring container DNS.
Line 22: Line 24:
 </WRAP> </WRAP>
  
- 
-<WRAP info> 
-**NOTE:** While **<nowiki>--name</nowiki>** and **<nowiki>--hostname</nowiki>** are both useful for identification of containers, sometimes, it's not about naming the container at all. 
- 
-Rather, it's about having a container clean up after itself without having to remember to do it yourself. 
-</WRAP> 
  
docker/containers/assign_a_hostname_to_the_container.1589361480.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki