Closed tchughesiv closed 6 months ago
That is probably the simplest fix now, but i think we should think about switching all images to run as non-root users anyway, both as a general good practice and also to avoid any other headaches with OpenShift.
Expected Behavior
The python Feature Server image should run in an OpenShift cluster without issue.
Current Behavior
The container doesn't start successfully, throws this error -
Steps to reproduce
Against an OpenShift cluster -
Specifications
Possible Solution
The issue is that the OpenShift
restricted
SCC, which is configured against namespaces by default, forces containers to run with a random uid, and a root gid. The solution is to pre-create the/.cache
dir with the proper permissions during the image build.