class MStrap::Docker
- MStrap::Docker
- Reference
- Object
Included Modules
Defined in:
mstrap/supports/docker.crInstance Method Summary
-
#app_path
Returns the path to an installed Docker for Mac application
-
#compose_file_args(config)
Returns a collection of flags for
docker-composeto useservices.ymlfor the loaded profiles. -
#ensure_compose!
Check for docker-compose and raise if not found.
-
#install!
Installs Docker on the target system, if it's not installed.
-
#requires_sudo?
Returns whether Docker requires sudo to run (i.e.
Instance methods inherited from module MStrap::DSL::System
cmd(env : Hash | Nil, command : String, args : Array(String) | Nil, 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
Returns a collection of flags for docker-compose to use services.yml
for the loaded profiles.
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
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.
Returns whether Docker requires sudo to run (i.e. is the user in the docker group or not)