Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DockerDown command #21

Merged
merged 2 commits into from
Jun 6, 2024
Merged

Add DockerDown command #21

merged 2 commits into from
Jun 6, 2024

Conversation

erichlf
Copy link
Owner

@erichlf erichlf commented Jun 6, 2024

Using docker ps it is possible to obtain the pid of a docker container. devcontainer-cli uses the devcontainer.json path as a label for a devcontainer. With these two bits of information we are able to kill a currently running devcontainer.

Fixes: #5

@erichlf erichlf merged commit bf9f437 into main Jun 6, 2024
2 checks passed
@erichlf erichlf deleted the down branch June 6, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the ability to shutdown the devcontainer
1 participant