class MStrap::Docker

Included Modules

Defined in:

mstrap/supports/docker.cr

Instance Method Summary

Instance methods inherited from module MStrap::DSL::System

cmd(env : Hash?, command : String, args : Array(String)?, shell = true, input = Process::Redirect::Inherit, output = Process::Redirect::Inherit, error = Process::Redirect::Inherit, quiet = false, sudo = false) cmd

Instance methods inherited from module MStrap::DSL::Logging

log(msg) log, logc(msg) logc, logd(msg) logd, logn(msg) logn, logw(msg) logw, success(msg) success

Instance Method Detail

def app_path #

Returns the path to an installed Docker for Mac application


[View source]
def compose_file_args(config) #

Returns a collection of flags for docker-compose to use services.yml for the loaded profiles.


[View source]
def ensure_compose! #

Check for docker-compose and raise if not found. On macOS, this will loop until you confirm the command line tools have been installed for Docker for Mac


[View source]
def install! #

Installs Docker on the target system, if it's not installed. On certain platforms, this may exit mstrap and print a message about requiring a reboot.


[View source]
def requires_sudo? #

Returns whether Docker requires sudo to run (i.e. is the user in the docker group or not)


[View source]