Cleanup leftover docker containers on main process kill
mcandre opened this issue · comments
When the user cancels xgo
such as with Control+C / SIGINT, then xgo leaves behind the Docker containers still running, which periodically spill logs onto the console.
Please setup some defers so that when the main process terminates, any Docker containers spawned by xgo are automatically cleaned up before handing control back to the user.