-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runOracle.sh doesn't find /sys/fs/cgroup/memory.max if run during image build with buildkit enabled #2334
Comments
I am also experiencing this issue. Is there a work-around? |
I am disabling buildkit for now |
Thank you very much. I see now that was in your original post. I misunderstood when I read it. This fixed the issue for me. |
Yes, please disable buildkit as a workaround until this is addressed |
Currently docker |
@metaruslan Can you please latest changes and test. It should work even with DOCKER_BUILDKIT enabled. |
@abhisbyk thank you! I'll let you know if my team has problems with it, but it may take a while when we get to it, since it's low priority given we are using the workaround. |
Ok, no problems. Thank you. |
Solution for macOS with M1/M2: Install colima - Containers in Lima. Start colima with colima start --arch x86_64 --cpu 4 --memory 6 Now you can run docker commands. Good luck. |
I'm trying to build a Dockerfile with such contents:
(inspired by https://github.com/oracle/docker-images/blob/main/OracleDatabase/SingleInstance/extensions/prebuiltdb/Dockerfile )
I get
OS: MacOS
Docker Desktop: Version 4.6.1 (76265)
This error goes away if I build with disabling buildking, i.e.
docker build . -t my-oracle-prebuilt --progress=plain
fails
DOCKER_BUILDKIT=0 docker build . -t my-oracle-prebuilt --progress=plain
succeeds
The error happens at this code in runOracle.sh
Introduced here https://github.com/oracle/docker-images/pull/1963/files#diff-5edd4db81714f280480cefa83cd5f40251d40a810076f4e8958a62d0ae8b1f2a
within #1963
I can see with an additional "RUN ls /sys/fs/cgroup/" command in my Dockerfile that there is no memory.max file, i.e. here is the output:
Is it a docker BuildKit problem/bug or can runOracle be modified to support BuildKit?
The text was updated successfully, but these errors were encountered: