mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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
This commit is contained in:
commit
704e9f9ff0
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue