docker-api
docker-api copied to clipboard
How do pass --rm to automatically remove container once it stops?
How do I pass --rm option when creating a container to make sure it automatically gets killed once it stops after CMD execution?
When creating a container you can set AutoRemove to true in the HostConfig object.
Awesome, thanks!
is there an exhaustive list of config parameters in documentation somewhere? That will be very useful
I've been using the API docs mostly. This specific flag is not even documented, I found it by searching the output of docker inspect <container>.