1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/registry
Sebastiaan van Stijn 85572cac14
registry: remove dependency on rootlesskit, add SetCertsDir()
The registry package contained code to automatically set the CertsDir() path,
based on wether or not the daemon was running in rootlessmode. In doing so,
it made use of the `pkg/rootless.RunningWithRootlessKit()` utility.

A recent change in de6732a403 added additional
functionality in the `pkg/rootless` package, introducing a dependency on
`github.com/rootless-containers/rootlesskit`. Unfortunately, the extra
dependency also made its way into the docker cli, which also uses the
registry package.

This patch introduces a new `SetCertsDir()` function, which allows
the default certs-directory to be overridden, and updates the daemon
to configure this location during startup.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-03-25 16:21:45 +01:00
..
resumable
auth.go registry: remove unused fallbackError 2022-03-18 15:09:16 +01:00
auth_test.go registry: remove unneeded alias for api/types/registry import 2022-03-17 17:12:19 +01:00
config.go registry: remove dependency on rootlesskit, add SetCertsDir() 2022-03-25 16:21:45 +01:00
config_test.go
config_unix.go registry: remove dependency on rootlesskit, add SetCertsDir() 2022-03-25 16:21:45 +01:00
config_windows.go registry: remove dependency on rootlesskit, add SetCertsDir() 2022-03-25 16:21:45 +01:00
endpoint_test.go
endpoint_v1.go registry: minor improvements and cleanup 2022-03-17 17:12:21 +01:00
errors.go
registry.go registry: defaultService: use sync.RWMutex 2022-03-17 17:12:23 +01:00
registry_mock_test.go registry: remove unneeded alias for api/types/registry import 2022-03-17 17:12:19 +01:00
registry_test.go registry: un-export AuthTransport() 2022-03-18 13:52:20 +01:00
service.go Merge pull request #43394 from thaJeztah/cleanup_registry_step2 2022-03-18 19:35:02 +01:00
service_v2.go registry: move allowNondistributableArtifacts, isSecureIndex to config 2022-03-17 17:12:28 +01:00
session.go Merge pull request #43394 from thaJeztah/cleanup_registry_step2 2022-03-18 19:35:02 +01:00
types.go registry: remove unneeded alias for api/types/registry import 2022-03-17 17:12:19 +01:00