DEV Community

Discussion on: Deploying a Phoenix 1.6 app with Docker and Elixir Releases

Collapse
 
zacky1972 profile image
Susumu Yamazaki

Hi,

I tried it, but when I run docker image build -t elixir/saturn ., I got the following error:

[+] Building 5.0s (7/10)                                                        
 => [internal] load build definition from Dockerfile                       0.4s
 => => transferring dockerfile: 548B                                       0.0s
 => [internal] load .dockerignore                                          0.6s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for docker.io/library/alpine:3.14.2           1.5s
 => ERROR FROM docker.io/library/build:latest                              2.1s
 => => resolve docker.io/library/build:latest                              2.1s
 => CACHED [app 1/5] FROM docker.io/library/alpine:3.14.2@sha256:e1c082e3  0.0s
 => CANCELED [app 2/5] RUN apk add --no-cache libstdc++ openssl ncurses-l  2.6s
 => [auth] library/build:pull token for registry-1.docker.io               0.0s
------                                                                          
 > FROM docker.io/library/build:latest:                                         
------                
failed to load cache key: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed  
Enter fullscreen mode Exit fullscreen mode

What should I do?

Collapse
 
miguelcoba profile image
Miguel Cobá

It looks like is failing to pull the alpine image.
can you try this and see if it succeeds?

$ docker pull alpine:3.14.2

you should get something like:

3.14.2: Pulling from library/alpine
Digest: sha256:e1c082e3d3c45cccac829840a25941e679c25d438cc8412c2fa221cf1a824e6a
Status: Image is up to date for alpine:3.14.2
docker.io/library/alpine:3.14.2
Enter fullscreen mode Exit fullscreen mode
Collapse
 
zacky1972 profile image
Susumu Yamazaki

Succeeded:

% docker pull alpine:3.14.2
3.14.2: Pulling from library/alpine
552d1f2373af: Already exists 
Digest: sha256:e1c082e3d3c45cccac829840a25941e679c25d438cc8412c2fa221cf1a824e6a
Status: Downloaded newer image for alpine:3.14.2
docker.io/library/alpine:3.14.2
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
zacky1972 profile image
Susumu Yamazaki

I did it! I mistook Dockerfile.

Thread Thread
 
miguelcoba profile image
Miguel Cobá

Great!