Apify Discord Mirror

Updated 5 months ago

Docker RUN --mount

At a glance

The community member is trying to use the RUN --mount command inside a Docker container, but it is failing with an error indicating that the command requires BuildKit, which is not supported by the workers. Another community member confirms that the RUN --mount command is not available in their Actors, as they do not support Docker BuildKit. The community member acknowledges this information.

Useful resources
I am trying to use RUN --mount inside my docker :
Plain Text
RUN --mount=from=builder,target=/__src__ /python3 /main.py --setup


but it failed :

Plain Text
ACTOR: ERROR: Docker image build failed: the --mount option requires BuildKit. Refer to https://docs.docker.com/go/buildkit/ to learn how to build images with BuildKit enabled


I am still not familiar with docker creation. any clue how to fix this ?
Thank You.
L
!
2 comments
Hi
Unfortunately our workers don't support Docker BuildKit, so the RUN --mount command is not available in our Actors.
Gotcha, Thanks! 😊
Add a reply
Sign up and join the conversation on Discord