Open mplsgrant opened 1 week ago
I also faced the same issue while building the image however I fixed it by using host network. e.g. docker build --network host -t my-app-image .
.
Let me transfer this to the buildx issue tracker, as build is now handled through buildx (client-side) and buildkit (daemon side)
Description
docker build
works on google cloud E2 images but not on C3D images.Reproduce
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo usermod -aG docker $(whoami) && newgrp docker
vi Dockerfile
Set working directory
WORKDIR /app
Copy the current directory contents into the container at /app
COPY . /app
Install any needed packages specified in requirements.txt
RUN pip install ruff --index-url https://pypi.org/simple
Make port 80 available to the world outside this container
EXPOSE 80
Start a bash shell instead of running the application directly
CMD ["/bin/bash"]
=> ERROR [4/4] RUN pip install ruff --index-url https://pypi.org/simple 104.5s
docker version
docker info
Additional Info
No response