We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 942cb94 commit b342dd1Copy full SHA for b342dd1
etchosts/etchosts.go
@@ -37,7 +37,7 @@ var (
37
}
38
)
39
40
-// BuildEtcHosts builds CONTAINER_TASK_DIR/etc_hosts with defaults.
+// BuildEtcHosts builds NOMAD_TASK_DIR/etc_hosts with defaults.
41
func BuildEtcHosts(hostsFile string) error {
42
content := bytes.NewBuffer(nil)
43
@@ -51,7 +51,7 @@ func BuildEtcHosts(hostsFile string) error {
51
return ioutil.WriteFile(hostsFile, content.Bytes(), 0644)
52
53
54
-// CopyEtcHosts copies /etc/hosts to CONTAINER_TASK_DIR/etc_hosts
+// CopyEtcHosts copies /etc/hosts to NOMAD_TASK_DIR/etc_hosts
55
func CopyEtcHosts(hostsFile string) error {
56
srcFile, err := os.Open("/etc/hosts")
57
if err != nil {
0 commit comments