Docker · Directive
VOLUME
The Docker VOLUME instruction declares a path for data stored outside a container's writable layer. Use a named volume for data owned by the application and a bind mount for files edited on the host.
Last updated
Syntax
VOLUME ["/path"]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
VOLUMEvolumesbind mountsdocker volume--mount:ro