mirror of
https://github.com/Effect-TS/effect.git
synced 2026-11-26 02:16:04 +08:00
Registry credentials move out of DockerEngine into their own service, DockerRegistryAuth, with one method: the credential for a registry, or undefined for anonymous. Its layer resolves them as the Docker CLI does, from the DockerConfig, running credential helpers through the ChildProcessSpawner, as the engine did before. DockerEngine is now only the connection: DockerEngine.make needs just the DockerConfig, and no longer a ChildProcessSpawner. DockerImages, DockerPlugins and DockerServices require DockerRegistryAuth, and so does Docker.layer. NodeDocker's layers provide it, with helpers run as Node.js child processes; to resolve credentials another way, such as minting short-lived tokens, provide the service yourself.