ros-tooling / cross_compile

A tool to build ROS and ROS2 workspaces for various targets
Apache License 2.0
188 stars 60 forks source link

Clear warning messages when docker is not running or installed #202

Open emersonknapp opened 4 years ago

emersonknapp commented 4 years ago

Description

In this issue the user experienced confusion when encountering a problem with docker. It is unclear whether it was not installed, the user was not in the correct group, or something else.

Add a detection step at startup to find out whether docker is installed, running, and accessible, and print clear warning messages about any bad situations detected.

Related Issues

Related to https://github.com/ros-tooling/cross_compile/issues/201

Completion Criteria

Implementation Notes / Suggestions

Testing Notes / Suggestions

This may be difficult to test, as it requires a specific test environment with the docker dependency missing. We could mock the checked situations at least to test the warning prints.