Open salmanulhaq opened 5 years ago
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>
.
How do I pass
--rm
option when creating a container to make sure it automatically gets killed once it stops after CMD execution?