Module: Avm::Instances::Base::Dockerizable

Defined in:
lib/avm/instances/base/dockerizable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#docker_image_optionsObject

Returns the value of attribute docker_image_options.



12
13
14
# File 'lib/avm/instances/base/dockerizable.rb', line 12

def docker_image_options
  @docker_image_options
end

Instance Method Details

#docker_container_exist?Boolean

Returns:

  • (Boolean)


19
20
21
22
23
# File 'lib/avm/instances/base/dockerizable.rb', line 19

def docker_container_exist?
  ::EacDocker::Executables.docker.command.append(
    ['ps', '-qaf', "name=#{docker_container_name}"]
  ).execute!.present?
end

#docker_container_nameObject



25
26
27
# File 'lib/avm/instances/base/dockerizable.rb', line 25

def docker_container_name
  id
end