module Dockerspec::Helper::Docker

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

Public Class Methods

lxc_execution_driver?() click to toggle source

Detects if we are using the Docker LXC execution driver.

@return [Boolean] `true` if we are using the LXC driver.

@api public

# File lib/dockerspec/helper/docker.rb, line 39
def self.lxc_execution_driver?
  ::Docker.info['ExecutionDriver'].start_with?('lxc')
end