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

What would be the equivalent of docker run --rm? #456

Open
soucosmo opened this issue Aug 22, 2024 · 1 comment
Open

What would be the equivalent of docker run --rm? #456

soucosmo opened this issue Aug 22, 2024 · 1 comment
Labels
question Further information is requested

Comments

@soucosmo
Copy link

I need to create the container and start it right away, and when the internal task is finished executing, the container should be automatically deleted, I get this behavior using docker run --rm.

@fussybeaver
Copy link
Owner

There should be an "autoremove" field on the HostConfig that you provide when creating the container.

@fussybeaver fussybeaver added the question Further information is requested label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants