meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| linux:docker:volumes [2019/04/04 09:45] – niziak | linux:docker:volumes [2025/09/29 20:22] (current) – niziak | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| Move volume between discs: | Move volume between discs: | ||
| <code bash> | <code bash> | ||
| + | |||
| + | ===== Named bind-mount volume ===== | ||
| + | |||
| + | Sometimes 3rd party script or compose depends on named volumes, but we want to put particular named volume on different (faster) drive. | ||
| + | |||
| + | from cmdline: | ||
| + | <code bash> | ||
| + | docker volume create -d local -o type=none -o o=bind -o device=/ | ||
| + | </ | ||
| + | |||
| + | od compose file: | ||
| + | <code yaml> | ||
| + | volumes: | ||
| + | pgsql-data: | ||
| + | driver: local | ||
| + | driver_opts: | ||
| + | type: none | ||
| + | o: bind | ||
| + | device: / | ||
| + | </ | ||
| + | |||
| ===== BTRFS Volume plugin for Docker ===== | ===== BTRFS Volume plugin for Docker ===== | ||