|
1 | 1 | ---
|
2 | 2 | description: Using volumes on Microsoft Windows
|
| 3 | +keywords: storage, persistence, data persistence, volumes, bind-mounts, windows |
3 | 4 | title: Using volumes on Microsoft Windows
|
4 |
| -keywords: storage, persistence, data persistence, volumes, windows |
| 5 | +toc_min: 1 |
| 6 | +toc_max: 2 |
| 7 | +redirect_from: |
| 8 | +- /engine/admin/volumes/mounts-on-windows/ |
5 | 9 | ---
|
6 | 10 |
|
7 | 11 | A Docker container's runtime data is either held in RAM or on the container's file system. By default all files created inside a container are stored in the writable layer of the container. This means that the data doesn’t persist when the container no longer exists, and it can be difficult to get the data out of the container if another process needs it.
|
@@ -59,9 +63,9 @@ The `--volume` syntax is more concise. It determines the mount type automaticall
|
59 | 63 |
|
60 | 64 | In Docker for Windows, containers may store runtime data in up to four different locations:
|
61 | 65 |
|
62 |
| -1. [The container's runtime storage space itself](#store-runtime-data-in-the-container-s-file-system-storage-area) |
63 |
| -2. [The Microsoft Windows host file system](#bind-mount--store-runtime-data-in-the-windows-host-file-system) |
64 |
| -3. [A special *Managed Volume* storage area](#volume--store-runtime-data-in-a-special--managed-volume--storage-area) |
| 66 | +1. [The container's runtime storage space itself](#store-runtime-data-in-the-containers-file-system-storage-area) |
| 67 | +2. [The Microsoft Windows host file system](#bind-mount-store-runtime-data-in-the-windows-host-file-system) |
| 68 | +3. [A special *Managed Volume* storage area](#volume-store-runtime-data-in-a-special-managed-volume-storage-area) |
65 | 69 | 4. If the Docker client is running on WSL 2: [Another WSL 2 Linux distribution's file system](#bind-mount-and-volumes-handling-in-wsl-2)
|
66 | 70 |
|
67 | 71 | 
|
@@ -348,7 +352,7 @@ Remoting data this way from the Windows host file system to the Linux container
|
348 | 352 |
|
349 | 353 | ### Bind-mounting to another WSL 2 Linux instance
|
350 | 354 |
|
351 |
| -Before utilizing Bind-mounting to files or directories of a WSL 2 Linux instance, make sure [Docker integration is enabled](wsl.md) in the corresponding WSL 2 instance. |
| 355 | +Before using Bind-mounting to files or directories of a WSL 2 Linux instance, make sure [Docker integration is enabled](wsl.md) in the corresponding WSL 2 instance. |
352 | 356 |
|
353 | 357 | To gain the best experience and benefit from maximum performance when Bind-mounting another WSL 2 Linux distro, create the Linux container from within the other WSL 2 Linux distro.
|
354 | 358 |
|
@@ -404,4 +408,4 @@ Using Linux containers in Docker for Windows, local container Volumes will be st
|
404 | 408 |
|
405 | 409 | NB: There is a way to inspect the contents of that WSL instance. See [this answer on SuperUser.com](https://superuser.com/a/1613591/1210833) for details.
|
406 | 410 |
|
407 |
| -For further details on Volumes in Docker for Windows to above section ["Volume: Store runtime data in a special *Managed Volume* storage area"](#Volume--Store-runtime-data-in-a-special--Managed-Volume--storage-area). |
| 411 | +For further details on Volumes in Docker for Windows to above section ["Volume: Store runtime data in a special *Managed Volume* storage area"](#volume-store-runtime-data-in-a-special-managed-volume-storage-area). |
0 commit comments