How can i specify --rm with Docker run command to make sure the containers are cleaned up on exit ?

15 views
Skip to first unread message

ishan jain

unread,
Mar 31, 2016, 1:25:12 AM3/31/16
to Ansible Project
As per the Docker docs for Docker run - https://docs.docker.com/engine/reference/run/
In the section clean up, it is mentioned that - to automatically clean up the container and remove the file system when the container exits, you can add the --rm flag

But i can't see any option in Ansible's docker module to specify this. How can do this in Ansible ?

ishan jain

unread,
Apr 4, 2016, 3:01:41 AM4/4/16
to Ansible Project
Still couldn't find anything. There's gotta be a way in ansible to specify this or maybe an option to specify all other switches.
Reply all
Reply to author
Forward
0 new messages