mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 18:11:35 +00:00
Merge pull request #81 from ijc/no-default-hostname
Do not force default hostname `moby`.
This commit is contained in:
commit
d534273407
@ -23,11 +23,12 @@ type tarWriter interface {
|
|||||||
// cache as it would be much simpler.
|
// cache as it would be much simpler.
|
||||||
|
|
||||||
var exclude = map[string]bool{
|
var exclude = map[string]bool{
|
||||||
".dockerenv": true,
|
".dockerenv": true,
|
||||||
"Dockerfile": true,
|
"Dockerfile": true,
|
||||||
"dev/console": true,
|
"dev/console": true,
|
||||||
"dev/pts": true,
|
"dev/pts": true,
|
||||||
"dev/shm": true,
|
"dev/shm": true,
|
||||||
|
"etc/hostname": true,
|
||||||
}
|
}
|
||||||
|
|
||||||
var replace = map[string]string{
|
var replace = map[string]string{
|
||||||
@ -43,7 +44,6 @@ nameserver 8.8.4.4
|
|||||||
nameserver 2001:4860:4860::8888
|
nameserver 2001:4860:4860::8888
|
||||||
nameserver 2001:4860:4860::8844
|
nameserver 2001:4860:4860::8844
|
||||||
`,
|
`,
|
||||||
"etc/hostname": "moby",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// tarPrefix creates the leading directories for a path
|
// tarPrefix creates the leading directories for a path
|
||||||
|
Loading…
Reference in New Issue
Block a user