fix broken links

This commit is contained in:
Allie Sadler 2022-07-05 15:46:04 +01:00
parent 3ded448faf
commit db66a143a4
2 changed files with 26 additions and 29 deletions

View File

@ -5,30 +5,29 @@ title: Frequently asked questions for Linux
redirect_from:
- desktop/linux/space
---
## Where does Docker Desktop store Linux containers?
Docker Desktop stores Linux containers and images in a single, large "disk image" file in the Linux filesystem. This is different from Docker on Linux, which usually stores containers and images in the `/var/lib/docker` directory on the host's filesystem.
## Where is the disk image file?
### Where is the disk image file?
To locate the disk image file, select the Docker icon and then
**Settings** > **Resources** > **Advanced**.
![Disk preferences](images/menu/prefs-advanced.png){:width="750px"}
To locate the disk image file, select **Preferences** from the Docker Dashboard then **Advanced** from the **Resources** tab.
The **Advanced** tab displays the location of the disk image. It also displays the maximum size of the disk image and the actual space the disk image is consuming. Note that other tools might display space usage of the file in terms of the maximum file size, and not the actual file size.
## If the file is too large
#### What if the file is too large?
If the disk image file is too large, you can:
- move it to a bigger drive,
- delete unnecessary containers and images, or
- reduce the maximum allowable size of the file.
- Move it to a bigger drive
- Delete unnecessary containers and images
- Reduce the maximum allowable size of the file
### Move the file to a bigger drive
#### How do I move the file to a bigger drive?
To move the disk image file to a different location:
1. Select **Settings** > **Resources** > **Advanced**.
1. Select **Preferences** then **Advanced** from the **Resources** tab.
2. In the **Disk image location** section, click **Browse** and choose a new location for the disk image.
@ -36,7 +35,7 @@ To move the disk image file to a different location:
Do not move the file directly in Finder as this can cause Docker Desktop to lose track of the file.
### Delete unnecessary containers and images
#### How do I delete unnecessary containers and images?
Check whether you have any unnecessary containers and images. If your client and daemon API are running version 1.25 or later (use the `docker version` command on the client to check your client and daemon API versions), you can see the detailed space usage information by running:
@ -86,14 +85,14 @@ $ ls -klsh Docker.raw
In this example, the actual size of the disk is `2333548` KB, whereas the maximum size of the disk is `64` GB.
### Reduce the maximum size of the file
#### How do I reduce the maximum size of the file?
To reduce the maximum size of the disk image file:
1. Select the Docker icon and then select **Settings** > **Resources** > **Advanced**.
1. From Docker Dashboard select **Preferences** then **Advanced** from the **Resources** tab.
2. The **Disk image size** section contains a slider that allows you to change the maximum size of the disk image. Adjust the slider to set a lower limit.
3. Click **Apply & Restart**.
When you reduce the maximum size, the current disk image file is deleted, and therefore, all containers and images will be lost.
When you reduce the maximum size, the current disk image file is deleted, and therefore, all containers and images will be lost.

View File

@ -27,30 +27,28 @@ The privileged helper process `com.docker.vmnetd` is started by `launchd` and
runs in the background. The process does not consume any resources unless
Docker.app connects to it, so it's safe to ignore.
### Where does Docker Desktop store Linux containers and images?
Docker Desktop stores Linux containers and images in a single, large "disk image" file in the Mac filesystem. This is different from Docker on Linux, which usually stores containers and images in the `/var/lib/docker` directory.
## Where is the disk image file?
#### Where is the disk image file?
To locate the disk image file, select the Docker icon and then
**Preferences** > **Resources** > **Advanced**.
![Disk preferences](images/menu/prefs-advanced.png){:width="750px"}
To locate the disk image file, select **Preferences** from the Docker Dashboard then **Advanced** from the **Resources** tab.
The **Advanced** tab displays the location of the disk image. It also displays the maximum size of the disk image and the actual space the disk image is consuming. Note that other tools might display space usage of the file in terms of the maximum file size, and not the actual file size.
## If the file is too big
#### What if the file is too big?
If the disk image file is too big, you can:
- move it to a bigger drive,
- delete unnecessary containers and images, or
- reduce the maximum allowable size of the file.
- Move it to a bigger drive
- Delete unnecessary containers and images
- Reduce the maximum allowable size of the file
### Move the file to a bigger drive
##### How do I move the file to a bigger drive?
To move the disk image file to a different location:
1. Select **Preferences** > **Resources** > **Advanced**.
1. Select **Preferences** then **Advanced** from the **Resources** tab.
2. In the **Disk image location** section, click **Browse** and choose a new location for the disk image.
@ -58,7 +56,7 @@ To move the disk image file to a different location:
Do not move the file directly in Finder as this can cause Docker Desktop to lose track of the file.
### Delete unnecessary containers and images
##### How do I delete unnecessary containers and images?
Check whether you have any unnecessary containers and images. If your client and daemon API are running version 1.25 or later (use the `docker version` command on the client to check your client and daemon API versions), you can see the detailed space usage information by running:
@ -108,11 +106,11 @@ $ ls -klsh Docker.raw
In this example, the actual size of the disk is `2333548` KB, whereas the maximum size of the disk is `64` GB.
### Reduce the maximum size of the file
##### How do I reduce the maximum size of the file?
To reduce the maximum size of the disk image file:
1. Select the Docker icon and then select **Preferences** > **Resources** > **Advanced**.
1. Select **Preferences** then **Advanced** from the **Resources** tab.
2. The **Disk image size** section contains a slider that allows you to change the maximum size of the disk image. Adjust the slider to set a lower limit.