Module: Dockerspec::Helper::Docker

Defined in:
lib/dockerspec/helper/docker.rb

Overview

Some helper methods to get information of the Docker environment in the system.

Class Method Summary collapse

Class Method Details

.lxc_execution_driver?Boolean

Detects if we are using the Docker LXC execution driver.

Returns:

  • (Boolean)

    true if we are using the LXC driver.



39
40
41
# File 'lib/dockerspec/helper/docker.rb', line 39

def self.lxc_execution_driver?
  ::Docker.info['ExecutionDriver'].start_with?('lxc')
end