Docker RUN --mount

I am trying to use RUN --mount inside my docker :
RUN --mount=from=builder,target=/__src__ /python3 /main.py --setup
RUN --mount=from=builder,target=/__src__ /python3 /main.py --setup
but it failed :
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
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.
2 Replies
flat-fuchsia
flat-fuchsia•10mo ago
Hi @!!!Joefree!!! 👑 Unfortunately our workers don't support Docker BuildKit, so the RUN --mount command is not available in our Actors.
!!!Joefree!!! 👑
!!!Joefree!!! 👑OP•10mo ago
Gotcha, Thanks! 😊

Did you find this page helpful?