From 1cc9b748322fe04f412d23ffb878d8bdc6b10f85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Sat, 17 Jul 2021 13:44:52 +0200 Subject: [PATCH] Better Docker run command --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2a7bbc27..cc9d297b 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ On the NAS: ```bash $ python3 -m pip install scan-to-paperless -$ sudo activate-global-python-argcomplete +$ sudo activate-global-python-argcomplete # optional $ echo PATH=$PATH:~/venv/bin >> ~/.bashrc ``` @@ -97,7 +97,7 @@ and you can get the \*.syno.json files to configure your Docker services. Otherwise use: ```bash -docker run --rm --restart=unless-stopped \ +docker run --name=scan-to-paperless --restart=unless-stopped --detatch \ --volume=:/source \ --volume=:/destination \ sbrunner/scan-to-paperless @@ -105,7 +105,14 @@ docker run --rm --restart=unless-stopped \ You can set the environment variable `PROGRESS` to `TRUE` to get all the intermediate images. -### Repoitory link +To stop run: + +```bash +docker stop scan-to-paperless +docker rm scan-to-paperless +``` + +### Repertory link You should find a way to synchronise or using sharing to link the scan folder on your desktop and on your nas.