Docker Community Forums

Share and learn in the Docker community.

How to install CUPS sodtware in httpd server?

docker

(Sukumarrdjf) #1

I have a docker image of a server whose base image is httpd:2.4 whose base image is alpine linux . I need to install CUPS software for configuring printers in the server. How do I proceed with installation.

I have included the apk update and apk upgrade commands in Dockerfile which updates alpine linux and trying to install CUPS using apk add cups which is mentioned in https://wiki.alpinelinux.org/wiki/Printer_Setup

But it is giving me the below error:

OCI runtime create failed: container_linux.go:348: starting contaier process caused "exec: \"apk\": executable file not found in $PATH": unknown

Can someone please tell me where am I going wrong in this and point me in right direction. Why is it not able to find the apk command which is from the base image - alpine linux .

Here’s the Dockerfile :
FROM httpd:2.4
RUN [“apk”, “update”]
RUN [“apk”, “upgrade”]
RUN [“apk”, “add”, “cups”]


(Dyrasan) #2

In which computer you are installing this software? Is it Compatible to linux?? As my laptop is new and it is not compatible for it. Thats all I know

Thankyou,
DyraSan (vidmate)