Method: Vx::Lib::Container::Docker#initialize
- Defined in:
- lib/vx/lib/container/docker.rb
#initialize(options = {}) ⇒ Docker
Returns a new instance of Docker.
20 21 22 23 24 25 26 27 28 |
# File 'lib/vx/lib/container/docker.rb', line 20 def initialize( = {}) @user = [:user] || "vexor" @password = [:password] || "vexor" @init = [:init] || %w{ /sbin/my_init } @image = [:image] || "vexor/trusty:2.0.1" @memory = [:memory].to_i @memory_swap = [:memory_swap].to_i @container_opts = [:container_opts] || {} end |