Pull the container image and decode your first QR code image
QR Code AI publishes the QR Code Scanner container image on GitHub Container Registry (GHCR) and lists it on Artifact Hub as a verified publisher. The CLI container packages qrscan for Linux AMD64 and ARM64: it decodes mounted files and prints a report completely offline. A separate GHCR image ships a self-hosted HTTP scanning service for workloads that call HTTP endpoints instead of one-shot CLI runs.
Pull the container image and test the public sample
The first command saves a public QR code sample into your current folder as clean-qr.png. The docker commands then pull the multi-platform GHCR CLI image and decode the mounted file offline.
curl -fsSL -o clean-qr.png \
https://raw.githubusercontent.com/qrcode-ai-com/qrcode-barcode-scanner-rust/main/fixtures/clean/OK_68ms_100_4e875a2c.png
image=ghcr.io/qrcode-ai-com/qrcode-barcode-scanner:0.12.2
docker pull "$image"
docker run --rm --network none --read-only --cap-drop ALL \
--mount type=bind,src="$PWD",dst=/input,readonly "$image" /input/clean-qr.png --prettyThis command mounts the current directory read-only, drops all Linux capabilities and disables networking. --pretty outputs a concise terminal summary of the first detection. qrscan offers three profiles: full (default) scores QR quality at full depth, fast uses lighter scoring and frame decodes only.
Commands in this guide target a POSIX shell such as bash or zsh.
The same container image also decodes barcodes: check the Barcode Scanner Docker guide.
Expected output
Because the container wraps the exact same qrscan binary, its output matches the CLI. For that clean QR sample image, --pretty prints this terminal summary:
content https://qrc-ai.com/76xMa
symbology QrCode
payload Url { url: "https://qrc-ai.com/76xMa" }
symbol v2 · 25x25 modules
engines rxing+rqrr
score 100/100 (Excellent)
resolution 5/5
blur 5/5
contrast 5/5
perspective 5/5
rotation 5/5
lighting 5/5
uec margin 1.00 (grade A · worst block 0/16 ec)
iso15415 overall A (informed, not certified)
contrast 1.00/A · modulation 1.00/A · axial 0.001/A · fixed-pattern 1.00/A
took 10msThe timing on the final line varies by host hardware.
Save the JSON report on the host
To decode your own image, such as qr-reference.png, place it inside the mounted folder. Without --pretty, qrscan writes the complete scan report as JSON to stdout. Redirect that stream to a host file because the container itself writes nothing.
docker run --rm --network none --read-only --cap-drop ALL \
--mount type=bind,src="$PWD",dst=/input,readonly \
ghcr.io/qrcode-ai-com/qrcode-barcode-scanner:0.12.2 /input/qr-reference.png --profile fast > report.jsonIf qr-reference.png encodes https://qrcode-ai.com/, that exact web address appears in the report.
See the QR Code Scanner CLI guide for every supported option.
The distribution and install guide documents published tags, image digests and provenance verification.
