public class DockerConfigReader extends Object
| Constructor and Description |
|---|
DockerConfigReader() |
| Modifier and Type | Method and Description |
|---|---|
Path |
defaultConfigPath() |
RegistryConfigs |
fromConfig(Path configPath)
Returns all RegistryConfig instances from the configuration file.
|
RegistryAuth |
fromConfig(Path configPath,
String serverAddress)
Returns the RegistryAuth for the config file for the given registry server name.
|
RegistryAuth |
fromFirstConfig(Path configPath)
Deprecated.
do not use - only exists for backwards compatibility. Use
fromConfig(Path)
instead. |
public RegistryConfigs fromConfig(Path configPath) throws IOException
IOExceptionpublic RegistryAuth fromConfig(Path configPath, String serverAddress) throws IOException
IllegalArgumentException - if the config file does not contain registry auth info for the
registryIOException@Deprecated public RegistryAuth fromFirstConfig(Path configPath) throws IOException
fromConfig(Path)
instead.IOExceptionpublic Path defaultConfigPath()
Copyright © 2017. All rights reserved.