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 Desktop application
-
#compose_file_args(config)
Returns a collection of flags for
docker compose
to useservices.yml
for 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, **kwargs)
cmd,
has_command?(command_name : String, **kwargs) : Bool
has_command?
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 Desktop
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)