Pull the container image and read your first QR code image
The QR Code Scanner container image is published by QR Code AI on the GitHub Container Registry (GHCR) and indexed on Artifact Hub as a verified publisher. The CLI image packages qrscan for Linux AMD64 and ARM64: it reads mounted files and prints a report without network access. A separate GHCR image provides a self-hosted HTTP scanning service when a job prefers HTTP calls over CLI execution.
Pull the container image and read the public sample
The first command downloads a public QR code sample into the current directory as clean-qr.png. The docker commands pull the multi-platform GHCR CLI image and scan 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 --prettyThe run mounts the current directory read-only, drops every capability and disables the network. --pretty prints a terminal summary of the first detection. qrscan has three profiles: full, the default, computes the QR quality score at full depth, fast computes it at reduced depth and frame only decodes.
The commands in this guide are written for a POSIX shell such as bash or zsh.
The same container image also reads barcodes: see the Barcode Scanner Docker guide.
What you get
The container image packages the same qrscan command, so it prints the same result as the CLI. For that 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 time on the last line depends on your machine.
Save the JSON report on the host
To read your own image, here qr-reference.png, put it in the directory you mount. Without --pretty, qrscan prints the complete scan report as JSON. Redirect it to a file on the host: 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 the code in qr-reference.png encodes https://qrcode-ai.com/, the report contains that address.
The QR Code Scanner CLI guide lists every option.
The distribution guide documents published tags, image digests and provenance checks.
