gcsfuse: Error: Unable to locate package gcsfuse while installing on a Docker image in an arm64 machine
Hi!
I am trying to build the following Docker image in a MacBook Pro with an M1 Pro processor.
FROM python:3.7.10-slim-buster
RUN apt-get update
RUN apt-get install --yes --no-install-recommends ca-certificates curl gpg gpg-agent
RUN echo "deb http://packages.cloud.google.com/apt gcsfuse-buster main" | tee /etc/apt/sources.list.d/gcsfuse.list
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
RUN apt-get update
RUN apt-get install --yes gcsfuse
But I am receiving the following error:
E: Unable to locate package gcsfuse
Is worth mentioning that in an Intel based machine this image is correctly built. And as far as I understand, there exists an arm64 distribution for this Debian version (buster)
Any help would be appreciated. Thanks!
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 8
- Comments: 15
I think
export DOCKER_DEFAULT_PLATFORM=linux/amd64
might have fixed build + run for me.For me, adding
--platform=amd64
to the top level docker build command fixes it.I’m facing the same issue. But none of the above solutions have worked so far