summaryrefslogtreecommitdiff
path: root/registry/registry.go
diff options
context:
space:
mode:
authorDavid Calavera <david.calavera@gmail.com>2016-03-08 16:03:37 -0500
committerDavid Calavera <david.calavera@gmail.com>2016-03-10 11:53:11 -0500
commit59586d02b1cc004f14cd7ff6b454211f562da326 (patch)
treee4a00bd8424bb14bba07a17cf664228714c77d08 /registry/registry.go
parent5ded3a212b16087f836622e7dbfb584944e6e145 (diff)
downloaddocker-59586d02b1cc004f14cd7ff6b454211f562da326.tar.gz
Move registry service options to the daemon configuration.
Allowing to set their values in the daemon configuration file. Signed-off-by: David Calavera <david.calavera@gmail.com>
Diffstat (limited to 'registry/registry.go')
-rw-r--r--registry/registry.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/registry/registry.go b/registry/registry.go
index 9071d9dc14..8fdfe3b0a4 100644
--- a/registry/registry.go
+++ b/registry/registry.go
@@ -11,7 +11,6 @@ import (
"net/http"
"os"
"path/filepath"
- "runtime"
"strings"
"time"
@@ -26,12 +25,6 @@ var (
ErrAlreadyExists = errors.New("Image already exists")
)
-func init() {
- if runtime.GOOS != "linux" {
- V2Only = true
- }
-}
-
func newTLSConfig(hostname string, isSecure bool) (*tls.Config, error) {
// PreferredServerCipherSuites should have no effect
tlsConfig := tlsconfig.ServerDefault