azukiapp / azk

azk is a lightweight open source development environment orchestration tool. Instantly & safely run any environment on your local machine.
http://azk.io
Apache License 2.0
897 stars 63 forks source link

[docker] Improving Docker version verification #545

Closed nuxlli closed 8 years ago

nuxlli commented 8 years ago

This closes #527.

This change adds a shield on Docker version check. This check is made using semver lib, which can throw an exception if the current version isn't in its supported format.

If semver fails, azk will try to extract the first three version blocks from the String: 1.8.1.ff84, as instance, should become 1.8.1, which is a valid version.

Finally, the user still can force the Docker version by setting the environment variable AZK_DOCKER_VERSION.