Note -f shows filesystem type, label, UUID, and mount points. Useful for identifying disks before mounting or partitioning. Linux only; on macOS, use diskutil list.
Note Creates an anonymous volume at that path when no explicit mount is provided. This prevents data from growing the container's writable layer. However, anonymous volumes are hard to manage - prefer named volumes via docker run -v.
Frequently asked questions
How do you mount point?
This task is covered in 2 stacks on this page: Bash & Linux, Docker. The "List Block Devices" snippet in Bash & Linux uses `lsblk [options]`.
Which command does the Bash & Linux example use?
The "List Block Devices" snippet uses `lsblk [options]`, from the System Info section of the Bash & Linux cheat sheet.
Which stacks cover "mount point" on this page?
Bash & Linux, Docker. Together they hold 2 copy-ready snippets for this task.
Is there anything to watch out for?
Yes. For "List Block Devices": -f shows filesystem type, label, UUID, and mount points. Useful for identifying disks before mounting or partitioning. Linux only; on macOS, use diskutil list.