diff --git a/docs/docker.rst b/docs/docker.rst index 3c31db65..bcd715ad 100644 --- a/docs/docker.rst +++ b/docs/docker.rst @@ -87,8 +87,7 @@ To start a Docker container (instance of the image): .. code-block:: bash - docker tag jbarlow83/ocrmypdf-alpine ocrmypdf - docker run --rm -i ocrmypdf (... all other arguments here...) - - + docker run --rm -i jbarlow83/ocrmypdf-alpine (... all other arguments here...) - - For convenience, create a shell alias to hide the Docker command. It is easier to send the input file as stdin and read the output from @@ -96,7 +95,7 @@ stdout – **this avoids the messy permission issues with Docker entirely**. .. code-block:: bash - alias docker_ocrmypdf='docker run --rm -i ocrmypdf' + alias docker_ocrmypdf='docker run --rm -i jbarlow83/ocrmypdf-alpine' docker_ocrmypdf --version # runs docker version docker_ocrmypdf - - output.pdf @@ -104,7 +103,7 @@ Or in the wonderful `fish shell `__: .. code-block:: fish - alias docker_ocrmypdf 'docker run --rm ocrmypdf' + alias docker_ocrmypdf 'docker run --rm jbarlow83/ocrmypdf-alpine' funcsave docker_ocrmypdf Alternately, you could mount the local current working directory as a @@ -112,7 +111,7 @@ Docker volume: .. code-block:: bash - alias docker_ocrmypdf='docker run --rm -i --user "$(id -u):$(id -g)" --workdir /data -v "$PWD:/data" ocrmypdf' + alias docker_ocrmypdf='docker run --rm -i --user "$(id -u):$(id -g)" --workdir /data -v "$PWD:/data" jbarlow83/ocrmypdf-alpine' docker_ocrmypdf /data/input.pdf /data/output.pdf Podman