Class: Contained::Command::DockerLogin
- Defined in:
- lib/contained/command/docker_login.rb
Overview
User to ‘docker login` to a registry using a provided username and password.
Constant Summary collapse
- DEFAULT_SERVER =
"hub.docker.com"
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Contained::Command::Base
Instance Method Details
#command ⇒ Array<Symbol,String>
18 19 20 21 22 23 24 25 26 |
# File 'lib/contained/command/docker_login.rb', line 18 def command [ :docker, :login, server, "-u", username, "-p", password, ] end |