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

Run docker-compose failed on Win10 & Docker Desktop #26

Closed
hsluoyz opened this issue Apr 12, 2022 · 2 comments · Fixed by #27
Closed

Run docker-compose failed on Win10 & Docker Desktop #26

hsluoyz opened this issue Apr 12, 2022 · 2 comments · Fixed by #27

Comments

@hsluoyz
Copy link

hsluoyz commented Apr 12, 2022

Env:

  • Windows 10 x64, 21H2
  • Docker Desktop 4.6.1 (76265)

Steps:

  • Run docker/docker-compose.yml

Error:

[+] Building 35.0s (9/39)
 => [internal] load build definition from Dockerfile                                                               0.3s 256:f61af8b79b82373288b916c34db5ad5befd6b89f15f103bb900bf98806ee9d03 1.46kB / 1.46kB                
 => => transferring dockerfile: 3.21kB                                                                             0.0s 256:1ed1acb801f7e35b25932c999a56fab6855c16ee21e09b38eaac76daef0bf870 2.07kB / 2.07kB                
 => [internal] load .dockerignore                                                                                  0.2s 256:1b54152ba0d87527ec904fc936a9f13705d669a768e6555ea3095566280acd31 529B / 529B                    
 => => transferring context: 2B                                                                                    0.0s 256:48f4b65c158eb45a0eb2daaee21a00efa6f1ed6e8943806281db050162c30174 55.80MB / 55.80MB              
 => [internal] load metadata for docker.io/library/debian:sid                                                      7.2s racting sha256:48f4b65c158eb45a0eb2daaee21a00efa6f1ed6e8943806281db050162c30174                     
 => [internal] load build context                                                                                  0.4s ] RUN echo "deb http://httpredir.debian.org/debian sid main" > /etc/apt/sources.list                
 => => transferring context: 6.71kB                                                                                0.0s ] RUN echo "deb-src http://httpredir.debian.org/debian sid main" >> /etc/apt/sources.list           
 => [ 1/35] FROM docker.io/library/debian:sid@sha256:1ed1acb801f7e35b25932c999a56fab6855c16ee21e09b38eaac76daef0  11.5s ] RUN DEBIAN_FRONTEND=noninteractive apt-get update || true                                         
 => => resolve docker.io/library/debian:sid@sha256:1ed1acb801f7e35b25932c999a56fab6855c16ee21e09b38eaac76daef0bf8  0.0s 
 => => sha256:f61af8b79b82373288b916c34db5ad5befd6b89f15f103bb900bf98806ee9d03 1.46kB / 1.46kB                     0.0s 
 => => sha256:1ed1acb801f7e35b25932c999a56fab6855c16ee21e09b38eaac76daef0bf870 2.07kB / 2.07kB                     0.0s 
 => => sha256:1b54152ba0d87527ec904fc936a9f13705d669a768e6555ea3095566280acd31 529B / 529B                         0.0s 
 => => sha256:48f4b65c158eb45a0eb2daaee21a00efa6f1ed6e8943806281db050162c30174 55.80MB / 55.80MB                   7.6s 
 => => extracting sha256:48f4b65c158eb45a0eb2daaee21a00efa6f1ed6e8943806281db050162c30174                          2.7s 
 => [ 2/35] RUN echo "deb http://httpredir.debian.org/debian sid main" > /etc/apt/sources.list                     4.8s 
 => [ 3/35] RUN echo "deb-src http://httpredir.debian.org/debian sid main" >> /etc/apt/sources.list                0.7s 
 => [ 4/35] RUN DEBIAN_FRONTEND=noninteractive apt-get update || true                                              8.6s 
 => ERROR [ 5/35] RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --fix-missing     apt-utils     autoconf   1.6s 
------
 > [ 5/35] RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --fix-missing     apt-utils     autoconf     automake  
   bind9-host     build-essential     dh-autoreconf     cpanminus     curl     devscripts     exuberant-ctags     git-co
re     jq     llvm     libgeoip1     libgeoip-dev     libpcre3     libpcre3-dbg     libpcre3-dev     libperl-dev     lib
magic-dev     libtool     lsof     make     mercurial     ngrep     procps     python     telnet     tcpflow     valgrin
d     vim     wget     zlib1g     zlib1g-dev:
#8 0.752 Reading package lists...
#8 1.424 Building dependency tree...
#8 1.563 Reading state information...
#8 1.567 Package python is not available, but is referred to by another package.
#8 1.567 This may mean that the package is missing, has been obsoleted, or
#8 1.567 is only available from another source
#8 1.567 However the following packages replace it:
#8 1.567   python-is-python3 2to3 python2-minimal python2 dh-python
#8 1.567
#8 1.569 E: Package 'python' has no installation candidate
------
executor failed running [/bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y --fix-missing     apt-utils     au
toconf     automake     bind9-host     build-essential     dh-autoreconf     cpanminus     curl     devscripts     exube
rant-ctags     git-core     jq     llvm     libgeoip1     libgeoip-dev     libpcre3     libpcre3-dbg     libpcre3-dev   
  libperl-dev     libmagic-dev     libtool     lsof     make     mercurial     ngrep     procps     python     telnet   
  tcpflow     valgrind     vim     wget     zlib1g     zlib1g-dev]: exit code: 100
ERROR: Service 'nginx-dev' failed to build : Build failed
@fooinha
Copy link
Owner

fooinha commented Apr 12, 2022

@hsluoyz , the last change, that installs python3 instead of python package should fix the docker build.

@hsluoyz
Copy link
Author

hsluoyz commented Apr 12, 2022

@fooinha thanks for the quick fix!

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

Successfully merging a pull request may close this issue.

2 participants