mirror of
https://github.com/docker/cli.git
synced 2026-01-23 15:21:32 +03:00
tell the user not to run from OSX
Docker-DCO-1.1-Signed-off-by: SvenDowideit <SvenDowideit@home.org.au> (github: SvenDowideit) Upstream-commit: fe445a2447e701cc91ef77d7bcb0978a5d373940 Component: engine
This commit is contained in:
@@ -98,6 +98,9 @@ func main() {
|
||||
}
|
||||
|
||||
if *flDaemon {
|
||||
if runtime.GOOS != "linux" {
|
||||
log.Fatalf("The Docker daemon is only supported on linux")
|
||||
}
|
||||
if os.Geteuid() != 0 {
|
||||
log.Fatalf("The Docker daemon needs to be run as root")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user