Skip to content

Docker image fails to build #1256

@jakub-bochenski

Description

@jakub-bochenski

docker build -f tern/docker/Dockerfile -t ternd:latest tern:

 => [internal] load build definition from Dockerfile                                                                                                                                                                             0.0s
 => => transferring dockerfile: 853B                                                                                                                                                                                             0.0s
 => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 4)                                                                                                                                                   0.0s
 => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 6)                                                                                                                                                   0.0s
 => [internal] load metadata for docker.io/library/python:3.9-slim-buster                                                                                                                                                        6.0s
 => [internal] load .dockerignore                                                                                                                                                                                                0.0s
 => => transferring context: 2B                                                                                                                                                                                                  0.0s
 => [base 1/1] FROM docker.io/library/python:3.9-slim-buster@sha256:320a7a4250aba4249f458872adecf92eea88dc6abd2d76dc5c0f01cac9b53990                                                                                             6.1s
 => => resolve docker.io/library/python:3.9-slim-buster@sha256:320a7a4250aba4249f458872adecf92eea88dc6abd2d76dc5c0f01cac9b53990                                                                                                  0.0s
 => => sha256:d5cca64dca485c37ccf06721e36a93bf4331b0404bfd3ef2c7873867965359b7 1.37kB / 1.37kB                                                                                                                                   0.0s
 => => sha256:c84dbfe3b8deeb39e17d121220107f8354a9083b468a320a77708cd128f11c87 6.82kB / 6.82kB                                                                                                                                   0.0s
 => => sha256:8b91b88d557765cd8c6802668755a3f6dc4337b6ce15a17e4857139e5fc964f3 27.14MB / 27.14MB                                                                                                                                 4.7s
 => => sha256:824416e234237961c9c5d4f41dfe5b295a3c35a671ee52889bfb08d8e257ec4c 2.78MB / 2.78MB                                                                                                                                   2.2s
 => => sha256:8d53da26040835f622504d7762fad14d226ac414efeb5363f5febebc89ff224d 11.04MB / 11.04MB                                                                                                                                 3.9s
 => => sha256:320a7a4250aba4249f458872adecf92eea88dc6abd2d76dc5c0f01cac9b53990 988B / 988B                                                                                                                                       0.0s
 => => sha256:84c8c79126f669beec1dcf6f34cd88094471745570c19c29b465dfa7db1fdabd 243B / 243B                                                                                                                                       2.7s
 => => sha256:2e1c130fa3ec1777a82123374b4c500623959f903c1dd731ee4a83e1f1b38ff2 3.14MB / 3.14MB                                                                                                                                   4.5s
 => => extracting sha256:8b91b88d557765cd8c6802668755a3f6dc4337b6ce15a17e4857139e5fc964f3                                                                                                                                        0.7s
 => => extracting sha256:824416e234237961c9c5d4f41dfe5b295a3c35a671ee52889bfb08d8e257ec4c                                                                                                                                        0.1s
 => => extracting sha256:8d53da26040835f622504d7762fad14d226ac414efeb5363f5febebc89ff224d                                                                                                                                        0.3s
 => => extracting sha256:84c8c79126f669beec1dcf6f34cd88094471745570c19c29b465dfa7db1fdabd                                                                                                                                        0.0s
 => => extracting sha256:2e1c130fa3ec1777a82123374b4c500623959f903c1dd731ee4a83e1f1b38ff2                                                                                                                                        0.1s
 => ERROR [stage-2 1/2] RUN echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list.d/bullseye.list     && echo "Package: *\nPin: release n=bullseye\nPin-Priority: 50" > /etc/apt/preferences.d/bullseye  3.6s
 => [builder 1/3] RUN mkdir /install                                                                                                                                                                                             0.3s
 => [builder 2/3] WORKDIR /install                                                                                                                                                                                               0.0s
 => CANCELED [builder 3/3] RUN pip install --no-warn-script-location --prefix=/install     tern                                                                                                                                  3.4s
------                                                                                                                                                                                                                                
 > [stage-2 1/2] RUN echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list.d/bullseye.list     && echo "Package: *\nPin: release n=bullseye\nPin-Priority: 50" > /etc/apt/preferences.d/bullseye     && apt-get update     && apt-get install -y --no-install-recommends     attr     findutils     fuse-overlayfs/bullseye     fuse3/bullseye     git     jq     skopeo     && rm -rf /var/lib/apt/lists/*:                                        
0.396 Ign:1 http://deb.debian.org/debian buster InRelease                                                                                                                                                                             
0.426 Ign:2 http://deb.debian.org/debian-security buster/updates InRelease                                                                                                                                                            
0.463 Ign:3 http://deb.debian.org/debian buster-updates InRelease                                                                                                                                                                     
0.496 Get:4 http://deb.debian.org/debian bullseye InRelease [75.1 kB]                                                                                                                                                                 
0.563 Err:5 http://deb.debian.org/debian buster Release                                                                                                                                                                               
0.563   404  Not Found [IP: 146.75.118.132 80]                                                                                                                                                                                        
0.592 Err:6 http://deb.debian.org/debian-security buster/updates Release                                                                                                                                                              
0.592   404  Not Found [IP: 146.75.118.132 80]                                                                                                                                                                                        
0.624 Err:7 http://deb.debian.org/debian buster-updates Release                                                                                                                                                                       
0.624   404  Not Found [IP: 146.75.118.132 80]
0.672 Get:8 http://deb.debian.org/debian bullseye/main amd64 Packages [8066 kB]
3.050 Reading package lists...
3.550 E: The repository 'http://deb.debian.org/debian buster Release' does not have a Release file.
3.550 E: The repository 'http://deb.debian.org/debian-security buster/updates Release' does not have a Release file.
3.550 E: The repository 'http://deb.debian.org/debian buster-updates Release' does not have a Release file.
------

 2 warnings found (use docker --debug to expand):
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 6)
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 4)
Dockerfile:16
--------------------
  15 |     
  16 | >>> RUN echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list.d/bullseye.list \
  17 | >>>     && echo "Package: *\nPin: release n=bullseye\nPin-Priority: 50" > /etc/apt/preferences.d/bullseye \
  18 | >>>     && apt-get update \
  19 | >>>     && apt-get install -y --no-install-recommends \
  20 | >>>     attr \
  21 | >>>     findutils \
  22 | >>>     fuse-overlayfs/bullseye \
  23 | >>>     fuse3/bullseye \
  24 | >>>     git \
  25 | >>>     jq \
  26 | >>>     skopeo \
  27 | >>>     && rm -rf /var/lib/apt/lists/*
  28 |     
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c echo \"deb http://deb.debian.org/debian bullseye main\" > /etc/apt/sources.list.d/bullseye.list     && echo \"Package: *\\nPin: release n=bullseye\\nPin-Priority: 50\" > /etc/apt/preferences.d/bullseye     && apt-get update     && apt-get install -y --no-install-recommends     attr     findutils     fuse-overlayfs/bullseye     fuse3/bullseye     git     jq     skopeo     && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions