cli
cli copied to clipboard
Apply --remove-existing-container before initializeCommand
VS Code devcontainer extension removes the devcontainer before running the rebuild. The Devcontainer CLI although works differently by applying options like --remove-existing-container only after initializeCommand. It could lead to the situation when old container left running although the rebuild has failed. It would be good to align the behaviour.