O'Reilly logo

Getting Started with Nano Server by Charbel Nemnom

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing container storage

We discussed in the Installing base container images section how to install a container image. Container images are not designed for persistent data, because containers, by default, use a temporary scratch space on the container host's system drive media for storage during only the lifetime of the running container. So, if you put your database there and you stop or delete the container, the database is gone. It is possible to move the container scratch space location to a different drive (more on that in the Create Hyper-V Container section at the end of this chapter).

Container images are also not a good place to store secret data, because if you put any sensitive data on the container image and then you push ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required