From b14e2f1c9977f2ba333c4f258cd0e37f9df79b83 Mon Sep 17 00:00:00 2001 From: Stadly Date: Sun, 4 Oct 2020 17:09:53 +0200 Subject: [PATCH] How to mount directory using relative path --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 394e7a5..94fc5e6 100644 --- a/README.md +++ b/README.md @@ -196,6 +196,12 @@ In the following example, the local directory `/path/to/photos` is mounted to `/ docker run -v /path/to/photos:/photos timeline-extract -c cookie photo /photos/my-image.jpg /photos/more-photos ``` +If you want to mount a directory using a relative path, you can use `$(pwd)` denote the current working directory: + +``` bash +docker run -v "$(pwd):/photos" timeline-extract -c cookie photo /photos +``` + ## Change log Please see [CHANGELOG](CHANGELOG.md) for information on what has changed recently.