• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
HP Recommended
HP LaserJet flow MFP M830
Linux

We have a requirement to configure a list of network printers on httpd:2.4 based docker image so that we can issue print commands to network printers that are configured.

I was able to configure the printers in the image using a software called CUPS (version 2.2.1-8deb9u2) by adding the printers.conf file (which contains the list of printers) in /etc/cups folder of the image and ppd files for each printer separately in /etc/cups/ppd folder.

I'm able to send print commands from the docker container which is run in my local VM and the print is successful.

But if I try the same thing in OCP, I'm not able to send print commands to network from inside the pod's terminal.

The print command is giving same output (like job number etc) both in local and OCP except the command from local is actually printing.

whoami command in OCP pod terminal gives the output - whoami: cannot find name for user ID 1002710000.

After doing some research, I realised that by default docker containers in OCP are run without a user but with a userID - for security reasons and I came to an assumption that "any printer that accepts the print job tries to get the username who sent the print job and tries to print the content that is sent". as there is no username in the docker container form OCP, the printers are unable to accept the print jobs. How do printers actually consider the printer jobs? Do they expect them to have a user name?

Someone please help me how to fix the issue or provide any workaround.

Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.