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 review code about cmd/* and fix some easy typos :D 2017-02-10 15:52:33 +08:00
README.md Fix readme doc for dockerd 2016-09-01 14:47:51 +08:00
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 Extract daemon configuration and discovery to their own package 2017-02-08 09:53:38 +01:00
config_solaris.go Add goimports to linters. 2017-08-21 18:15:08 -04:00
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 Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
daemon.go Disallow using legacy (V1) registries 2017-12-09 02:24:43 -08:00
daemon_freebsd.go Windows: Wait for OOBE to prevent crashing during host update 2017-02-15 14:01:54 -08:00
daemon_linux.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
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 Merge pull request #35253 from Microsoft/jjh/startuplogging 2017-10-23 18:43:41 +02:00
docker.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
docker_windows.go Windows: work around Go 1.6.2/Nano Server TP5 issue 2016-05-25 11:59:28 +02:00
metrics.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
options.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
options_test.go Remove `cli/flags` package 2017-06-01 13:34:31 -07:00
service_unsupported.go Windows: no pidfile when service 2017-03-08 15:18:30 -08:00
service_windows.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00

README.md

docker.go contains Docker daemon's main function.

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