Closed kennethlimcp closed 7 years ago
Seems like kitematic managed to incorporate machine shutdown on application quitting.
We can study and do something similar in future.
https://github.com/docker/kitematic/blob/master/src/app.js#L67
https://github.com/docker/kitematic/blob/master/src/utils/DockerMachineUtil.js#L65
Seems like a trivial implementation by detecting the OS and piping the correct command to call docker-machine stop
docker-machine stop
Seems like kitematic managed to incorporate machine shutdown on application quitting.
We can study and do something similar in future.
https://github.com/docker/kitematic/blob/master/src/app.js#L67
https://github.com/docker/kitematic/blob/master/src/utils/DockerMachineUtil.js#L65
Seems like a trivial implementation by detecting the OS and piping the correct command to call
docker-machine stop