From the course: Windows Server 2019: Deploying Containers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Manage container storage

Manage container storage - Windows Server Tutorial

From the course: Windows Server 2019: Deploying Containers

Start my 1-month free trial

Manage container storage

- [Instructor] With container storage, whether it's in Windows or Linux, when a new container is created from an image, and data is modified inside the container layer, once that container's writable layer is gone and the container ceases to exist, that data also ceases to exist. What that means is that it's important to understand persistent storage with containers. You have a couple of different options to help you. The first one is bind mounts. With bind mounts, the host shares a directory with a container, however, non-Docker processes can modify anything in that directory. So, that is an area to be cautious about. There is a new Windows feature with Windows Server called SMB Global Mapping, which allows you to do a bind mount to an SMB share. So that's actually really powerful. Could be very useful. Another persistent container storage option is called named volumes. With named volumes you can create a volume by name and use it multiple times on the same host. Data is then stored…

Contents