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
Comments
Post a Comment