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

Building docker compose macOS #112

Open
corehook opened this issue Sep 24, 2024 · 0 comments
Open

Building docker compose macOS #112

corehook opened this issue Sep 24, 2024 · 0 comments

Comments

@corehook
Copy link

Assalamu Alekim. I trying build docker images and get some errors

umit@MacBook-Air-dilhan rails-base-app % sudo docker compose build
[+] Building 5.7s (13/46)                                        docker:default
 => [cable internal] load build definition from Dockerfile                 0.0s
 => => transferring dockerfile: 2.46kB                                     0.0s
 => [worker internal] load build definition from Dockerfile                0.0s
 => => transferring dockerfile: 2.46kB                                     0.0s
 => [worker internal] load metadata for docker.io/library/ruby:3.2.2-alpi  1.8s
 => [web internal] load build definition from Dockerfile                   0.0s
 => => transferring dockerfile: 2.46kB                                     0.0s
 => [cable auth] library/ruby:pull token for registry-1.docker.io          0.0s
 => [web internal] load .dockerignore                                      0.0s
 => => transferring context: 799B                                          0.0s
 => [cable internal] load .dockerignore                                    0.0s
 => => transferring context: 799B                                          0.0s
 => [worker internal] load .dockerignore                                   0.1s
 => => transferring context: 799B                                          0.0s
 => CACHED [worker base 1/3] FROM docker.io/library/ruby:3.2.2-alpine@sha  0.0s
 => [web internal] load build context                                      0.2s
 => => transferring context: 10.18kB                                       0.1s
 => [cable internal] load build context                                    0.2s
 => => transferring context: 10.18kB                                       0.2s
 => [worker internal] load build context                                   0.2s
 => => transferring context: 10.18kB                                       0.2s
 => ERROR [cable base 2/3] RUN apk add --update   git   postgresql-dev     3.7s
------
 > [cable base 2/3] RUN apk add --update   git   postgresql-dev   tzdata   nodejs=16.17.1-r0   yarn=1.22.19-r0:
0.630 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
1.840 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
3.378 ERROR: unable to select packages:
3.391   nodejs-20.15.1-r0:
3.391     breaks: world[nodejs=16.17.1-r0]
3.391     satisfies: yarn-1.22.19-r0[nodejs]
------
failed to solve: process "/bin/sh -c apk add --update   git   postgresql-dev   tzdata   nodejs=$NODE_VERSION   yarn=$YARN_VERSION" did not complete successfully: exit code: 2

Then I remove node & yarn version in Dockerfile and command docker compose build work fine...

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

1 participant