Disabled remote access to dockerd. Preferred usage is over ssh.

This commit is contained in:
Solomon Hykes
2013-02-12 08:37:12 -08:00
parent bded592a15
commit f330c2a248
3 changed files with 20 additions and 12 deletions
+5 -1
View File
@@ -740,7 +740,11 @@ func main() {
log.Fatal(err)
}
}()
if err := rcli.ListenAndServeTCP(":4242", d); err != nil {
// FIXME: we want to use unix sockets here, but net.UnixConn doesn't expose
// CloseWrite(), which we need to cleanly signal that stdin is closed without
// closing the connection.
// See http://code.google.com/p/go/issues/detail?id=3345
if err := rcli.ListenAndServe("tcp", "127.0.0.1:4242", d); err != nil {
log.Fatal(err)
}
}