1 hour ago Β· Tech Β· hide Β· 0 comments

A great how-to on moving from a Docker volume to a bind mount. That being said, I don't necessarily agree with their benefits breakdowns for each. For example, as a benefit of using Docker volumes, they say: Persistence: Even if the Docker container is deleted, the volume persists, which is crucial for non-temporary data. For reasons listed in my previous post about Docker volumes, I actually find that as a negative. I greatly prefer not-hidden, surprise1 locations of my container data. Also, you know what else will keep data if a container is deleted? A bind mount! And I usually keep mine in the same directory as the docker-compose.yml.2 But I successfully, easily migrated a Postgres data volume to a bind mount3, and I'm going to bookmark it (with this blog post) and archive it in several places so I'll always have it. That's how nice it is. An unfair set of adjectives, perhaps, but I'm sticking with 'em! ↩ I can definitely see me having a different opinion if I had to do enterprise…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.