Skip to content

Commit 704e9f9

Browse files
committed
Merge pull request moby#5761 from SvenDowideit/pr_out_tell_the_user_not_to_run_from_osx
tell the user not to run -d from OSX
2 parents 6f651ec + fe445a2 commit 704e9f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker/docker.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ func main() {
9898
}
9999

100100
if *flDaemon {
101+
if runtime.GOOS != "linux" {
102+
log.Fatalf("The Docker daemon is only supported on linux")
103+
}
101104
if os.Geteuid() != 0 {
102105
log.Fatalf("The Docker daemon needs to be run as root")
103106
}

0 commit comments

Comments
 (0)