Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker build error #1388

Closed
cocktail18 opened this issue Jun 12, 2024 · 1 comment
Closed

docker build error #1388

cocktail18 opened this issue Jun 12, 2024 · 1 comment

Comments

@cocktail18
Copy link

cocktail18 commented Jun 12, 2024

branch: master
code: docker build ./ -t hello-algo
desktop: Mac m2

[+] Building 15.6s (8/20)                                                                                                                                                            docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                                                                                                 0.0s
 => => transferring dockerfile: 657B                                                                                                                                                                 0.0s
 => [internal] load metadata for docker.io/library/python:3.10.0-alpine                                                                                                                              4.9s
 => [auth] library/python:pull token for registry-1.docker.io                                                                                                                                        0.0s
 => [internal] load .dockerignore                                                                                                                                                                    0.0s
 => => transferring context: 2B                                                                                                                                                                      0.0s
 => [internal] load build context                                                                                                                                                                    0.7s
 => => transferring context: 55.77MB                                                                                                                                                                 0.7s
 => [ 1/15] FROM docker.io/library/python:3.10.0-alpine@sha256:359a32afa8c60b473a9131c6331589717afdad8081baf4d779dc2b41fcd4b8df                                                                      8.1s
 => => resolve docker.io/library/python:3.10.0-alpine@sha256:359a32afa8c60b473a9131c6331589717afdad8081baf4d779dc2b41fcd4b8df                                                                        0.0s
 => => sha256:348801d85b30953f84b51e406983d00d6dc8404faba705f44b2da52b3e1c5e7e 7.45kB / 7.45kB                                                                                                       0.0s
 => => sha256:9b3977197b4f2147bdd31e1271f811319dcd5c2fc595f14e81f5351ab6275b99 2.72MB / 2.72MB                                                                                                       2.1s
 => => sha256:8d32640a910c3e85657a128d82a875712149a2e6e40423a5094d781002956d0b 680.01kB / 680.01kB                                                                                                   1.8s
 => => sha256:3b88a7424b0ffd13bb64ccf6d70751b90ad27d40060efe86ff800fb26ad84bbd 11.77MB / 11.77MB                                                                                                     7.6s
 => => sha256:359a32afa8c60b473a9131c6331589717afdad8081baf4d779dc2b41fcd4b8df 1.65kB / 1.65kB                                                                                                       0.0s
 => => sha256:af98bfb921cfd4a693b89fb37bc3df83beb54ce761dabaf89611a8a97c22d78e 1.37kB / 1.37kB                                                                                                       0.0s
 => => sha256:966cd65a31b4bef5002552c92745a8a3c1f12730cd8c1e529a5c4b7161bbd120 229B / 229B                                                                                                           2.4s
 => => extracting sha256:9b3977197b4f2147bdd31e1271f811319dcd5c2fc595f14e81f5351ab6275b99                                                                                                            0.1s
 => => sha256:7d22f8e221d94509364fd0ac245eaf85d69cd743a8247de85a004187254e9bbf 2.35MB / 2.35MB                                                                                                       4.3s
 => => extracting sha256:8d32640a910c3e85657a128d82a875712149a2e6e40423a5094d781002956d0b                                                                                                            0.1s
 => => extracting sha256:3b88a7424b0ffd13bb64ccf6d70751b90ad27d40060efe86ff800fb26ad84bbd                                                                                                            0.3s
 => => extracting sha256:966cd65a31b4bef5002552c92745a8a3c1f12730cd8c1e529a5c4b7161bbd120                                                                                                            0.0s
 => => extracting sha256:7d22f8e221d94509364fd0ac245eaf85d69cd743a8247de85a004187254e9bbf                                                                                                            0.1s
 => [ 2/15] RUN pip install --upgrade pip                                                                                                                                                            1.9s
 => ERROR [ 3/15] RUN pip install mkdocs-material==9.5.5 mkdocs-glightbox                                                                                                                            0.7s 
------                                                                                                                                                                                                    
 > [ 3/15] RUN pip install mkdocs-material==9.5.5 mkdocs-glightbox:                                                                                                                                       
0.278 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple                                                                                                                                        
0.447 ERROR: Could not find a version that satisfies the requirement mkdocs-material==9.5.5 (from versions: none)
0.447 ERROR: No matching distribution found for mkdocs-material==9.5.5
------
Dockerfile:5
--------------------
   3 |     ENV PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
   4 |     RUN pip install --upgrade pip
   5 | >>> RUN pip install mkdocs-material==9.5.5 mkdocs-glightbox
   6 |     
   7 |     WORKDIR /hello-algo
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install mkdocs-material==9.5.5 mkdocs-glightbox" did not complete successfully: exit code: 1


@krahets
Copy link
Owner

krahets commented Jul 14, 2024

I didn't reproduce the error. Please try:

docker-compose up -d

https://www.hello-algo.com/chapter_appendix/contribution/

@krahets krahets closed this as completed Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants