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 :
RUN [“apk”, “update”]
RUN [“apk”, “upgrade”]
RUN [“apk”, “add”, “cups”]