TrueNAS 25.10 has no built-in print service. To share a printer from the NAS, run CUPS as a custom Docker app using Install via YAML, or run it in a VM. If all your clients can print directly to an IPP printer, skip the print server.
First, check whether you need one at all
Before building anything, work out which situation applies.
| Situation | Do you need CUPS on TrueNAS? |
|---|---|
| Network printer with IPP Everywhere and compatible clients | No. Clients print to it directly. |
| USB-only printer, no network port | A compatible CUPS backend can make a shared queue useful. |
| Printer already shared from a desktop that is always on | No. You already have a print server. |
IPP Everywhere is designed for driverless network printing between compatible printers and clients.
Ways to run a print server on TrueNAS, compared
| Route | USB printer access | Discovery | Catch |
|---|---|---|---|
| Custom Docker app (24.10 and later) | Compose devices entry for a /dev/bus/usb node | DNS-SD discovery via Avahi when configured | Choose the image yourself. Check the official catalog for CUPS. |
| Linux VM | USB Passthrough Device, by list or vendor and product ID | Depends on the guest setup | Allocate memory to the guest |
| FreeBSD jail (FreeNAS, CORE) | CUPS setup attempted in a jail | Depends on the jail setup | CORE 13.3 provides jails to the community without support |
The VM’s device screen can select a USB device by Vendor ID and Product ID. A Compose mapping names a bus/device node that can change. This guide uses the container route.
What about a FreeNAS or TrueNAS CORE print server?
A FreeNAS user described trying to set up CUPS in a jail. The CORE 13.0 services list has no print service either. The CORE 13.3 release notes identify 13.3-U1.2 as the final release of that series and say plugins, jails and VMs are provided to the community without support.
iXsystems renamed TrueNAS SCALE to TrueNAS Community Edition with 25.04 in April 2025, and the 13.3 notes recommend migrating to 25.10. Jails do not migrate. Record each queue’s device URI with lpstat -v before retiring the jail, then rebuild it as the custom app below.
What the deployment actually consists of
This example runs CUPS as a single container. The CUPS web interface and IPP service use port 631.
- Persistent configuration. CUPS defaults to
/etc/cupsfor configuration and/var/spool/cupsfor print jobs. Mount the paths documented by your image on persistent storage. CUPS file settings - Access to the printer. For a network printer, connect over the network. For a USB printer, the container needs the USB device passed through from the host.
- Discoverability. Local multicast discovery needs a DNS-SD advertisement and a working multicast path.
Deploying it via Compose
In Apps, open Discover, then the three-dot menu and Install via YAML. In Add Custom App, enter a name such as cups in Name. Paste the Compose YAML below into Custom Config, starting with services:. TrueNAS 25.10 Custom App screens
TrueNAS checks basic YAML syntax before running the file. Verify the indentation, paths and settings before saving.
The example uses Docker Compose’s network_mode: host and maps a single USB node with devices. Both settings and the bind-mount syntax are defined in the Compose Container specification.
services:
cups:
image: <cups image>
network_mode: host
volumes:
- /mnt/tank/apps/cups/etc:/etc/cups
- /mnt/tank/apps/cups/spool:/var/spool/cups
devices:
- /dev/bus/usb/001/004:/dev/bus/usb/001/004
restart: unless-stopped
Replace <cups image> with your chosen image. Set your pool and dataset paths and replace the example USB node on both sides of the mapping. For a network printer, omit devices.
Check the image’s documented paths, driver support, discovery setup and authentication settings. If the image documents how to override its default login, set your own administrator credentials before deploying. Click Save to deploy the app. TrueNAS custom app installation guide
Choosing a CUPS image
The anujdatar/cups README shows USB passthrough, a persistent /etc/cups mount and the restart: unless-stopped setting used above. It also documents how to override the default admin login.
The olbat/cupsd README lists Debian driver packages including printer-driver-all. Its example bind-mounts the host’s /var/run/dbus directory at the same path in the container. See the discovery section below before choosing a D-Bus setup.
Storage: persist configuration and define a restore path
The TrueNAS guided app form offers Host Path mounts to existing storage and ixVolume datasets created on the apps pool. Both are persistent. The YAML deployment above mounts directories you choose on the TrueNAS host.
For this example, create named configuration and spool directories before deploying. Confirm the image’s user can write to them. See the HBA and boot guide’s deployment handoff for app-data recovery.
Include the configuration dataset in a snapshot schedule and an independent backup such as a replication task.
Avahi discovery under host networking
Docker host networking shares the host’s network namespace.
For automatic DNS-SD discovery, enable queue sharing and advertise the queue. The Avahi documentation separates publishing a service from browsing for it.
Follow the image’s documented discovery arrangement. Multiple mDNS responders on the same host can interfere with one another.
Run cupsctl --share-printers in the CUPS container. By default, only clients on the same subnet as the CUPS server can print to shared queues. Then run lpadmin -p printername -o printer-is-shared=true, replacing printername with your queue name. Avoid --remote-any, which allows printing from any subnet that can reach the server. OpenPrinting printer sharing guide
Check three layers separately:
- Open the CUPS interface by the NAS address and port 631 to establish basic reachability.
- Confirm the queue accepts a job through its IPP address.
- Check discovery from a client on the same subnet.
For the host-network setup, allow IPP and mDNS traffic only on the intended LAN. IPP uses TCP 631 and multicast DNS uses UDP 5353.
Docker discards published ports in host mode. A second service already listening on TCP 631 can conflict.
USB printer passthrough to a TrueNAS container
This USB mapping requires a host device node and permission for the container to use it. Docker’s Compose Container specification defines devices as a mapping from a host device path to a container path. For example, bus 001 and device 004 give /dev/bus/usb/001/004. Use your printer’s bus and device numbers on both sides of the mapping. Linux USB device paths
Use this sequence to separate discovery from access:
- Connect the printer, then identify its USB bus/device entry on the NAS.
- Confirm the image contains a USB printing backend and a compatible driver.
- Add the device mapping and deploy the app. Select it on the Apps screen and open Shell in Workloads. Run
lpinfo -vto list available backends and detected printer URIs. - Use the reported URI when adding the queue. Run
lpinfo -mto list available driver models. Check the container user and device permissions if access fails. - Repeat the check if the printer reconnects or re-enumerates.
USB device numbers can change when a device re-enumerates. If the node changes, update the mapping and redeploy the app. Mapping the entire USB bus gives the container access to a wider set of devices.
Docker documents device_cgroup_rules separately from devices. Compose Container specification
If the printer appears inside the container but jobs remain queued, check the CUPS error log.
Driverless IPP Everywhere: when a driver is unnecessary
IPP Everywhere defines driverless printing using IPP and DNS-SD.
For a compatible IPP printer, the CUPS administration guide gives this example to create a queue with the everywhere model.
lpadmin -p printername -E -v ipp://11.22.33.44/ipp/print -m everywhere
Use the reported device URI for the printer.
An older USB printer may still need a compatible driver and USB backend. Check support for the exact model and the container architecture before choosing an image.
Prefer direct client-to-printer IPP when it already meets the need. A CUPS relay can supply a shared queue when you need one.
What about sharing the printer over SMB?
Use CUPS over IPP for printer sharing on TrueNAS. The TrueNAS 25.10 Shares screen offers file and block shares and has no printer-share option. The TrueNAS SMB guide shows how to share a dataset over SMB.
Samba itself supports a [printers] section in smb.conf. TrueNAS 25.10 generates its Samba configuration through middleware, so a direct edit can be overwritten when the configuration is regenerated.
Starting with Windows 10 21H2, Windows includes the Microsoft IPP Class Driver for Mopria-compliant printer devices.
A job was sent but nothing printed
When a client reports success and no paper appears, check the queue in the app’s shell.
lpstat -tshows scheduler status, printer devices, queue states and jobs.- The default
ErrorPolicy,stop-printer, stops the printer after a failed job unless the printer has its own policy. Fix the cause, then runcupsenable printername. - Run
lpstat -W completed -oto see which jobs CUPS marked as complete. - Run
cupsctl --debug-loggingand print a test withlp -d printername file. Read the[Job NNN]lines in the error log. Turn off debug logging withcupsctl --no-debug-loggingwhen done.
The error log defaults to /var/log/cups/error_log. In cups-files.conf, ErrorLog stderr sends entries to standard error when the scheduler runs in the foreground.
Troubleshooting queue and discovery failures
| Symptom | What to check |
|---|---|
| Printer configuration gone after an app update | Confirm the persistent mount matches the image’s documented path |
| Queue reachable by IP, invisible to clients | Check queue sharing, Avahi/DNS-SD integration and the multicast path |
| Jobs queue and never print | Check the CUPS error log for messages about the job. |
| Console opens but cannot find a network printer | Add the queue using the printer’s reported IPP URI. |
| Printer vanishes after a power cycle | Check whether the USB node changed. Update the mapping and redeploy if needed. |
| Admin pages return HTTP 426 | Open the CUPS interface over HTTPS on port 631. The default DefaultEncryption setting requires encryption for authenticated requests. |
| Admin interface refuses access | Distinguish failed authentication from listener and access-policy restrictions |
Keep it on the LAN
CUPS provides a web interface for administration and uses filters to process print jobs.
Bind it to the LAN.
Where this fits
For the app backend, see moving apps to Docker. For a RAM estimate, see the TrueNAS RAM and ARC Calculator.
Evidence and limits. The deployment steps are based on the TrueNAS 25.10 documentation, the Docker Compose Container specification and OpenPrinting’s CUPS manuals. The steps were not run on a TrueNAS system.