Class ConfigFileRegistryAuthSupplier

  • All Implemented Interfaces:
    RegistryAuthSupplier

    public class ConfigFileRegistryAuthSupplier
    extends java.lang.Object
    implements RegistryAuthSupplier
    RegistryAuthSupplier that returns data from the docker-cli config file. The config file is re-read on each method call, to handle cases where a process is updating the file out-of-band during the lifecycle of a DockerClient instance.
    • Field Detail

      • log

        private static final org.slf4j.Logger log
      • path

        private final java.nio.file.Path path
    • Constructor Detail

      • ConfigFileRegistryAuthSupplier

        public ConfigFileRegistryAuthSupplier()
      • ConfigFileRegistryAuthSupplier

        public ConfigFileRegistryAuthSupplier​(DockerConfigReader reader)
      • ConfigFileRegistryAuthSupplier

        public ConfigFileRegistryAuthSupplier​(DockerConfigReader reader,
                                              java.nio.file.Path path)