Skip to content

Commit ce588a5

Browse files
authored
Update device-mapper-driver.md
callout json-file functionality when using devicemapper - json-file logs to docker dataroot not devicemapper volumes
1 parent d3bebc2 commit ce588a5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

storage/storagedriver/device-mapper-driver.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,14 @@ storage driver.
807807
by thin provisioning and copy-on-write. Volumes have other benefits, such as
808808
allowing you to share data among containers and persisting even when no
809809
running container is using them.
810+
811+
- **Note**: when using `devicemapper` and the `json-file` log driver, the log
812+
files generated by a container are still stored in Docker's dataroot directory,
813+
by default `/var/lib/docker`. If your containers generate lots of log messages,
814+
this may lead to increased disk usage or the inability to manage your system due
815+
to a full disk. You can configure a
816+
[log driver](/config/containers/logging/configure.md) to store your container
817+
logs externally.
810818
811819
## Related Information
812820

0 commit comments

Comments
 (0)