Skip to content

Commit dd2ea43

Browse files
PurneswarPrasadTim Bannister
andauthored
Removed all previous PR links with Docker reference
Co-authored-by: Tim Bannister <[email protected]>
1 parent d44efbe commit dd2ea43

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

content/en/docs/tasks/network/customize-hosts-file-for-pods.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,12 @@ with the additional entries specified at the bottom.
120120
The kubelet manages the
121121
`hosts` file for each container of the Pod to prevent the container runtime from
122122
modifying the file after the containers have already been started.
123-
For e.g. earlier Docker used to [modify](https://github.com/moby/moby/issues/17190) the `hosts` file after the containers start.
123+
Historically, Kubernetes always used Docker Engine as its container runtime, and Docker Engine would
124+
then modify the `/etc/hosts` file after each container had started.
125+
126+
Current Kubernetes can use a variety of container runtimes; even so, the kubelet manages the
127+
hosts file within each container so that the outcome is as intended regardless of which
128+
container runtime you use.
124129

125130
{{< caution >}}
126131
Avoid making manual changes to the hosts file inside a container.

0 commit comments

Comments
 (0)