Skip to content

docker build fails #22

@sebastiandanconia

Description

@sebastiandanconia
# docker build .
[+] Building 171.8s (7/9)                                                                            docker:default
 => [internal] load build definition from Dockerfile                                                           0.0s
 => => transferring dockerfile: 621B                                                                           0.0s
 => WARN: MaintainerDeprecated: Maintainer instruction is deprecated in favor of using label (line 3)          0.0s
 => [internal] load metadata for docker.io/library/debian:stable-slim                                          0.9s
 => [auth] library/debian:pull token for registry-1.docker.io                                                  0.0s
 => [internal] load .dockerignore                                                                              0.0s
 => => transferring context: 2B                                                                                0.0s
 => [1/4] FROM docker.io/library/debian:stable-slim@sha256:00a24d7c50ebe46934e31f6154c0434e2ab51259a65e028be4  5.9s
 => => resolve docker.io/library/debian:stable-slim@sha256:00a24d7c50ebe46934e31f6154c0434e2ab51259a65e028be4  0.0s
 => => sha256:5f8b9cef2916669fd774ae97c7e499a3ee53db3025e7d9f929639b9e3383dcf2 451B / 451B                     0.0s
 => => sha256:948bf0a6db3c500c8fc5c92b55dcdc337062b7690a7573d3e29eb5e1a039402b 28.23MB / 28.23MB               1.1s
 => => sha256:00a24d7c50ebe46934e31f6154c0434e2ab51259a65e028be42413c636385f7f 8.54kB / 8.54kB                 0.0s
 => => sha256:7830184ada5448f3755b857c679bbf7baf27a742b7d590c4be8e96a901082686 1.02kB / 1.02kB                 0.0s
 => => extracting sha256:948bf0a6db3c500c8fc5c92b55dcdc337062b7690a7573d3e29eb5e1a039402b                      4.4s
 => [internal] load build context                                                                              0.1s
 => => transferring context: 861B                                                                              0.0s
 => ERROR [2/4] RUN apt-get -qq -y update;   apt-get -qq -y full-upgrade;   apt-get -qq -y install icecast2  164.8s
------                                                                                                              
 > [2/4] RUN apt-get -qq -y update;   apt-get -qq -y full-upgrade;   apt-get -qq -y install icecast2 python-setuptools sudo cron-apt;   apt-get -y autoclean;   apt-get clean;   chown -R icecast2 /etc/icecast2;   chmod 777 /var/log/icecast2/access.log;   chmod 777 /var/log/icecast2/error.log ;  sed -i 's/ -d//' /etc/cron-apt/action.d/3-download:  
10.61 debconf: delaying package configuration, since apt-utils is not installed                                     
(Reading database ... 6091 files and directories currently installed.)                                              
10.96 Preparing to unpack .../perl-base_5.36.0-7+deb12u2_amd64.deb ...
10.99 Unpacking perl-base (5.36.0-7+deb12u2) over (5.36.0-7+deb12u1) ...
160.4 Setting up perl-base (5.36.0-7+deb12u2) ...
162.6 E: Package 'python-setuptools' has no installation candidate
162.6 Reading package lists...
164.4 Building dependency tree...
164.7 Reading state information...
164.8 chown: invalid user: 'icecast2'
164.8 chmod: cannot access '/var/log/icecast2/access.log': No such file or directory
164.8 chmod: cannot access '/var/log/icecast2/error.log': No such file or directory
164.8 sed: can't read /etc/cron-apt/action.d/3-download: No such file or directory
------

 2 warnings found (use docker --debug to expand):
 - MaintainerDeprecated: Maintainer instruction is deprecated in favor of using label (line 3)
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 5)
Dockerfile:7
--------------------
   6 |     
   7 | >>> RUN apt-get -qq -y update; \
   8 | >>>   apt-get -qq -y full-upgrade; \ 
   9 | >>>   apt-get -qq -y install icecast2 python-setuptools sudo cron-apt; \
  10 | >>>   apt-get -y autoclean; \
  11 | >>>   apt-get clean; \
  12 | >>>   chown -R icecast2 /etc/icecast2; \
  13 | >>>   chmod 777 /var/log/icecast2/access.log; \
  14 | >>>   chmod 777 /var/log/icecast2/error.log ;\
  15 | >>>   sed -i 's/ -d//' /etc/cron-apt/action.d/3-download 
  16 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get -qq -y update;   apt-get -qq -y full-upgrade;   apt-get -qq -y install icecast2 python-setuptools sudo cron-apt;   apt-get -y autoclean;   apt-get clean;   chown -R icecast2 /etc/icecast2;   chmod 777 /var/log/icecast2/access.log;   chmod 777 /var/log/icecast2/error.log ;  sed -i 's/ -d//' /etc/cron-apt/action.d/3-download" did not complete successfully: exit code: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions