Class: Ansible::Ruby::Modules::Docker_login
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Docker_login
- Defined in:
- lib/ansible/ruby/modules/generated/core/cloud/docker/docker_login.rb
Overview
Provides functionality similar to the “docker login” command. Authenticate with a docker registry and add the credentials to your local Docker config file. Adding the credentials to the config files allows future connections to the registry using tools such as Ansible’s Docker modules, the Docker CLI and docker-py without needing to provide credentials. Running in check mode will perform the authentication without updating the config file.
Instance Method Summary collapse
-
#config_path ⇒ String?
Custom path to the Docker CLI configuration file.
-
#email ⇒ String?
The email address for the registry account.
-
#password ⇒ String
The plaintext password for the registry account.
-
#reauthorize ⇒ Boolean?
Refresh exiting authentication found in the configuration file.
-
#registry_url ⇒ String?
The registry URL.
-
#username ⇒ String
The username for the registry account.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#config_path ⇒ String?
Returns Custom path to the Docker CLI configuration file.
33 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_login.rb', line 33 attribute :config_path |
#email ⇒ String?
Returns The email address for the registry account. NOTE: private registries may not require this, but Docker Hub requires it.
25 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_login.rb', line 25 attribute :email |
#password ⇒ String
Returns The plaintext password for the registry account.
21 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_login.rb', line 21 attribute :password |
#reauthorize ⇒ Boolean?
Returns Refresh exiting authentication found in the configuration file.
29 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_login.rb', line 29 attribute :reauthorize |
#registry_url ⇒ String?
Returns The registry URL.
13 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_login.rb', line 13 attribute :registry_url |
#username ⇒ String
Returns The username for the registry account.
17 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/docker/docker_login.rb', line 17 attribute :username |