testing - Run MongoDB in a Docker container with no volumes -


this slitty odd question run mongo db no volume @ all.

the reason is, can run tests on ci , able clear down after tests run.

we building image docker mongo dockerfile , removing volume (line 63) volume /data/db /data/configdb @ end of docker build errors write /var/lib/docker/tmp/getimageblob872455794: no space left on device.

is possible?

mongo needs data volume write data when runs.

i think best option remove volume when remove container

docker rm -v my-mongo

adding -v flag docker rm remove associated volumes

https://docs.docker.com/engine/reference/commandline/rm/


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -