Creating a locally developed containerized service is quite slow. To test every code change, the developer would have to make the code change then destroy the existing container, rebuild the container and restart it. Volumes makes that process efficient.

When a container is destroyed, any state is lost with it. Docker offers volumes which could be mounted to a container allowing data to be persisted outside of a container’s standard lifecycle. This is used for running databases and containers that allows avoiding rebuilding containers with every code change.

To run volumes, add “-v” to the regular docker run command. Map…

Chuk Orakwusi

Junior Front-end Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store