Adapt the CLI to the host install model for 18.09. Signed-off-by: Daniel Hiltgen <daniel.hiltgen@docker.com> (cherry picked from commit 342afe44fb65789274e44d76bdbd2f3b127086ce) Signed-off-by: Daniel Hiltgen <daniel.hiltgen@docker.com>
14 lines
137 B
Go
14 lines
137 B
Go
// +build !windows
|
|
|
|
package engine
|
|
|
|
import (
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
var (
|
|
isRoot = func() bool {
|
|
return unix.Geteuid() == 0
|
|
}
|
|
)
|