Method: Docker::Maker#_bash
- Defined in:
- lib/docker/maker.rb
#_bash(cmd, input = nil) ⇒ Object
62 63 64 65 66 67 |
# File 'lib/docker/maker.rb', line 62 def _bash cmd, input=nil cmd = [docker, "run", "-d", @name, "/bin/bash", "-c", cmd] @img, s = _exec cmd, input raise @img unless s s end |