Merge pull request #5761 from SvenDowideit/pr_out_tell_the_user_not_to_run_from_osx

tell the user not to run -d from OSX
Upstream-commit: 704e9f9ff0e5af18938085298a0f6f69262d693a
Component: engine
This commit is contained in:
Victor Vieux
2014-05-16 16:52:08 -07:00
+3
View File
@@ -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")
}