Class: EacDocker::Container::StartCommand
- Inherits:
-
Object
- Object
- EacDocker::Container::StartCommand
- Defined in:
- lib/eac_docker/container/start_command.rb
Overview
Start an already existing container identified by #id, if present, or #name.
Instance Method Summary collapse
Instance Method Details
#result ⇒ EacRubyUtils::Envs::Command
12 13 14 |
# File 'lib/eac_docker/container/start_command.rb', line 12 def result ::EacDocker::Executables.docker.command('start', *start_args) end |
#start_args ⇒ Array<String>
17 18 19 20 21 22 23 |
# File 'lib/eac_docker/container/start_command.rb', line 17 def start_args r = [] r << '--attach' if interactive? || tty? r << '--interactive' if interactive? r << identifier r end |