Stop Docker Machine before removing it
What does this MR do?
docker-machine stop step before removing machine.
Why was this MR needed?
Currently we're doing only
docker-machine rm which is roughly destroying a machine. This doesn't shutdown machine properly so anything that is done on the shutdown of machine (e.g. disconnecting from a Consul cluster) is not executed.
docker-machine stop step should make the machine to be powered off gracefully, with execution of all shutdown handlers.
Are there points in the code the reviewer needs to double check?
Does this MR meet the acceptance criteria?
- Documentation created/updated
- Added for this feature/bug
- All builds are passing
Branch has no merge conflicts with
master(if you do - rebase it please)