Mount point

2 snippets across 2 stacks — Bash & Linux, Docker

Also written as mount points

SHBash & Linux

List Block Devices

SH · System Info
syntax
lsblk [options]
example
lsblk -f
output
NAME   FSTYPE  LABEL   SIZE MOUNTPOINT
sda                    100G
├─sda1 ext4   root     50G /
├─sda2 swap            4G  [SWAP]
└─sda3 xfs    data    46G  /data

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.

DKDocker

VOLUME — Declare Mount Point

DK · Dockerfile
syntax
VOLUME ["/path/to/dir"]
example
VOLUME ["/var/lib/postgresql/data"]

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.