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

Error building docker image #255

Open
rbbt-99 opened this issue Mar 12, 2024 · 1 comment
Open

Error building docker image #255

rbbt-99 opened this issue Mar 12, 2024 · 1 comment

Comments

@rbbt-99
Copy link

rbbt-99 commented Mar 12, 2024

When I try to build docker image I get following error:

sudo docker compose build base-image
[+] Building 11.6s (6/9)                                                                                                                                                   
 => [base-image internal] load build definition from base.Dockerfile                                                                                                  0.0s
 => => transferring dockerfile: 496B                                                                                                                                  0.0s
 => [base-image internal] load .dockerignore                                                                                                                          0.0s
 => => transferring context: 222B                                                                                                                                     0.0s
 => [base-image internal] load metadata for docker.io/library/python:3.11-alpine                                                                                      0.8s
 => CACHED [base-image 1/5] FROM docker.io/library/python:3.11-alpine@sha256:2c0e25da660a20c1e99ccd091a3fdda4c6e3525d91fe5306d89cc24b54fc6b95                         0.0s
 => [base-image internal] load build context                                                                                                                          0.0s
 => => transferring context: 84B                                                                                                                                      0.0s
 => ERROR [base-image 2/5] RUN apk add --no-cache         tzdata         htop         bash         libstdc++                                                         10.7s
------                                                                                                                                                                     
 > [base-image 2/5] RUN apk add --no-cache         tzdata         htop         bash         libstdc++:                                                                     
0.619 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz                                                                                        
5.622 WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.19/main: temporary error (try again later)                                                                
5.623 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz                                                                                   
10.63 WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.19/community: temporary error (try again later)                                                           
10.63 ERROR: unable to select packages:
10.63   bash (no such package):
10.63     required by: world[bash]
10.63   htop (no such package):
10.63     required by: world[htop]
10.63   libstdc++ (no such package):
10.63     required by: world[libstdc++]
------
failed to solve: process "/bin/sh -c apk add --no-cache         tzdata         htop         bash         libstdc++" did not complete successfully: exit code: 3

How can I solve this?

@tropicoo
Copy link
Owner

Just try again

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