moby--moby/cmd/dockerd
Sebastiaan van Stijn 8d6df8a0ad
Disallow using legacy (V1) registries
Interacting with v1 registries was deprecated in Docker 1.8.3, disabled by default
in Docker 17.06, and scheduled for removal in Docker 17.12.

This patch disallows enabling V1 registry through the `--disable-legacy-registry`
option, and the `"disable-legacy-registry": false` option in the daemon configuration
file. The actual V1 registry code is still in place, and will be removed separately.

With this patch applied:

    $ dockerd --disable-legacy-registry=false
    ERROR: The '--disable-legacy-registry' flag has been removed. Interacting with legacy (v1) registries is no longer supported

Or, when setting through the `daemon.json` configuration file

    $ mkdir -p /etc/docker/
    $ echo '{"disable-legacy-registry":false}' > /etc/docker/daemon.json
    $ dockerd
    ERROR: The 'disable-legacy-registry' configuration option has been removed. Interacting with legacy (v1) registries is no longer supported

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-12-09 02:24:43 -08:00
..
hack
README.md
config.go Disallow using legacy (V1) registries 2017-12-09 02:24:43 -08:00
config_common_unix.go Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
config_experimental.go
config_solaris.go
config_unix.go Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
config_unix_test.go Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
config_windows.go
daemon.go Disallow using legacy (V1) registries 2017-12-09 02:24:43 -08:00
daemon_freebsd.go
daemon_linux.go
daemon_test.go Remove deprecated support for duplicate label-keys 2017-11-12 03:11:37 +01:00
daemon_unix.go Fix nonewmountns for containerd options 2017-12-04 14:17:30 -05:00
daemon_unix_test.go Disallow using legacy (V1) registries 2017-12-09 02:24:43 -08:00
daemon_windows.go
docker.go
docker_windows.go
metrics.go
options.go
options_test.go
service_unsupported.go
service_windows.go

README.md

docker.go contains Docker daemon's main function.

This file provides first line CLI argument parsing and environment variable setting.