mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 05:31:47 +00:00
Disabled remote access to dockerd. Preferred usage is over ssh.
This commit is contained in:
+5
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user