I initially thought that docker stop
is equivalent to vagrant halt
, and docker rm
is to vagrant destroy
.
But fundamentally, docker containers are stateless, except for VOLUME
statement, which AFAIK preserves directory content even after docker rm
, if it wasn't called with -v
.
So, what is the difference?