Docker Volumes And Logging
How to docker: Learn why volumes came into being
Published in
6 min readFeb 3, 2020
Prerequisites
To best understand volumes, let us look at a scenario where we setup an nginx server with logging capabilities and it crashes due to extreme load.
How would we ensure all logs are persisted?
Let us start with a simple setup and understand the problem.
- Run the following command
$ docker container run -p 8180:80 -d nginx…