I’ve got a container that acts as a print server for a USB connected
printer that was previously working on an Arch Linux host, but fails on
an Ubuntu 16.04 host.
The error message when starting cupsd is:
/usr/sbin/cupsd: error while loading shared libraries: libcupsmime.so.1:
cannot open shared object file: No such file or directory
The problem only occurs when the --privileged flag is present. Simply
removing --privileged=true allows cupsd to start successfully, but
causes the print service to fail (without any error message that I can
The run command that worked on Arch Linux is:
$ docker run -d --privileged=true -p 6631:631/tcp -v /dev/bus/usb:/dev/bus/usb --name lbp6020 lbp6020
Looking at the documentation there’s no obvious connection between
–privileged (which affects the containers access to devices) and
loading a shared library.
Thanks very much,