Member-only story
Instant Development for Docker-based Applications with Docker Volumes (Plug & Play Hot Reload)
Some developers don’t like using Docker for their development because they think it’s not efficient. They say Docker slows them down because every time they make changes, they have to rebuild the whole image from scratch.
It’s actually true that rebuilding the entire image from scratch every time there’s a change takes a lot of time. But what if we could modify the process into a kind of “plug and play” setup where we don’t have to rebuild the entire image, but instead, the container will run directly from our local machine?
Disclaimer: This idea came from my fellow co-worker Singgih, all credit goes to him! ✌️
Purpose of Docker
Before we start learning about this plug-and-play, let’s first understand Docker a bit.
Docker is a service that bundles software and its dependencies into containers. These containers act like small virtual machines, but they’re faster and more lightweight because they share the computer’s resources.