The docker_registry
resource is responsible for managing the connection auth information to a Docker registry.
:login
- Login to the Docker Registry
email
password
serveraddress
username
- Log into or register with public registry:
docker_registry 'https://index.docker.io/v1/' do
username 'publicme'
password 'hope_this_is_in_encrypted_databag'
email '[email protected]'
end
Log into private registry with optional port:
docker_registry 'my local registry' do
serveraddress 'https://registry.computers.biz:8443/'
username 'privateme'
password 'still_hope_this_is_in_encrypted_databag'
email '[email protected]'
end