Add check for non-systemd fd use case

We make the check more user-friendly, and users can learn
start docker with wrong fd used.

Signed-off-by: Kai Qiang Wu(Kennan) <wkqwu@cn.ibm.com>
Upstream-commit: 3c69d340ebe35dc3adb56cd2345cbac3c1dd5fb8
Component: engine
This commit is contained in:
Kai Qiang Wu(Kennan)
2016-02-22 01:53:38 +00:00
parent f3978cfd1e
commit 05fbdefd70
@@ -59,7 +59,7 @@ func listenFD(addr string, tlsConfig *tls.Config) ([]net.Listener, error) {
}
if len(listeners) == 0 {
return nil, fmt.Errorf("No sockets found")
return nil, fmt.Errorf("No sockets found. Make sure the docker daemon was started by systemd.")
}
// default to all fds just like unix:// and tcp://