You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On that page, click the 'Create Instance' button (it is a large blue button near the top of the page)
On the new page scroll to "Machine configuration" and select the "C3D" radio button
Click the 'Create' button (it is a large blue button near the bottom of the page)
ssh into the new vm instance by clicking the 'ssh' button (it is black and borderless near the right of the page). This should create a terminal window
Add yourself to the docker group: sudo usermod -aG docker $(whoami) && newgrp docker
Create a Dockerfile: vi Dockerfile
Paste the following into Dockerfile
FROM python:3.12-slim
# 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"]
Run docker build -t my-app-image .
Expected behavior
docker build -t my-app-image . succeeds without timeout issues.
Instead, it times out with the following warnings:
=> ERROR [4/4] RUN pip install ruff --index-url https://pypi.org/simple 104.5s
------
> [4/4] RUN pip install ruff --index-url https://pypi.org/simple:
16.54 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/ruff/
32.16 WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/ruff/
48.21 WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/ruff/
65.25 WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/ruff/
84.30 WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/ruff/
99.35 ERROR: Could not find a version that satisfies the requirement ruff (from versions: none)
99.35 ERROR: No matching distribution found for ruff
------
Dockerfile:10
--------------------
8 |
9 | # Install any needed packages specified in requirements.txt
10 | >>> RUN pip install ruff --index-url https://pypi.org/simple
11 |
12 | # Make port 80 available to the world outside this container
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install ruff --index-url https://pypi.org/simple" did not complete successfully: exit code: 1
docker version
$ docker version
Client: Docker Engine - Community
Version: 27.0.2
API version: 1.46
Go version: go1.21.11
Git commit: 912c1dd
Built: Wed Jun 26 18:47:36 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 27.0.2
API version: 1.46 (minimum version 1.24)
Go version: go1.21.11
Git commit: e953d76
Built: Wed Jun 26 18:47:36 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.18
GitCommit: ae71819c4f5e67bb4d5ae76a6b735f29cc25774e
runc:
Version: 1.7.18
GitCommit: v1.1.13-0-g58aa920
docker-init:
Version: 0.19.0
GitCommit: de40ad0
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
docker build -t my-app-image .
Expected behavior
docker build -t my-app-image .
succeeds without timeout issues.Instead, it times out with the following warnings:
docker version
$ docker version Client: Docker Engine - Community Version: 27.0.2 API version: 1.46 Go version: go1.21.11 Git commit: 912c1dd Built: Wed Jun 26 18:47:36 2024 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 27.0.2 API version: 1.46 (minimum version 1.24) Go version: go1.21.11 Git commit: e953d76 Built: Wed Jun 26 18:47:36 2024 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.7.18 GitCommit: ae71819c4f5e67bb4d5ae76a6b735f29cc25774e runc: Version: 1.7.18 GitCommit: v1.1.13-0-g58aa920 docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: