This commit is contained in:
Guillaume J. Charmes 2013-12-18 10:16:26 -08:00
Родитель 70c7220a99
Коммит 73a1ef7c22
3 изменённых файлов: 15 добавлений и 1 удалений

Просмотреть файл

@ -32,7 +32,7 @@ func setupHostname(args *DockerInitArgs) error {
if hostname == "" {
return nil
}
return syscall.Sethostname([]byte(hostname))
return setHostname(hostname)
}
// Setup networking

Просмотреть файл

@ -0,0 +1,5 @@
package sysinit
func setHostname(hostname string) error {
panic("Not supported on darwin")
}

9
sysinit/sysinit_linux.go Normal file
Просмотреть файл

@ -0,0 +1,9 @@
package sysinit
import (
"syscall"
)
func setHostname(hostname string) error {
return syscall.Sethostname([]byte(hostname))
}