Skip to content

Instantly share code, notes, and snippets.

@bsidhom
Created October 26, 2025 21:06
Show Gist options
  • Select an option

  • Save bsidhom/1d3ba9b2f2bc83891991ffb024c35d2b to your computer and use it in GitHub Desktop.

Select an option

Save bsidhom/1d3ba9b2f2bc83891991ffb024c35d2b to your computer and use it in GitHub Desktop.
Run ocrmypdf via podman with working directory auto-mounted.
# On macOS, certain directories such as /tmp are specially linked and must be referenced by canonical paths under volume mounts.
podman run --rm -i --user "$(id -u):$(id -g)" --userns keep-id --workdir /data -v "$(readlink -f $(pwd)):/data" jbarlow83/ocrmypdf-alpine <args>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment