Docker Volumes And Logging

How to docker: Learn why volumes came into being

Omkar Birade
interleap
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.

  1. Run the following command
$ docker container run -p 8180:80 -d nginx…

--

--

Omkar Birade
interleap

Co-Founder at Interleap. I write to learn more.