nginx-ssl-ja3 icon indicating copy to clipboard operation
nginx-ssl-ja3 copied to clipboard

Run docker-compose failed with "failed to solve: executor failed running [/bin/sh -c patch -p1 < nginx.latest.patch]: exit code: 2" on Win10 & Docker Desktop

Open hsluoyz opened this issue 3 years ago • 3 comments

Env:

  • Windows 10 x64, 21H2
  • Docker Desktop 4.7.0 (77141)

Steps:

  • Run docker/docker-compose.yml

Error:

 => CACHED [ 8/35] RUN git clone https://github.com/nginx/nginx-tests                                              0.0s
 => CACHED [ 9/35] RUN git clone https://github.com/openssl/openssl                                                0.0s
 => CACHED [10/35] WORKDIR /build/openssl                                                                          0.0s
 => CACHED [11/35] RUN git checkout OpenSSL_1_1_1 -b patched                                                       0.0s
 => CACHED [12/35] COPY patches/openssl.extensions.patch /build/openssl                                            0.0s
 => CACHED [13/35] RUN patch -p1 < openssl.extensions.patch                                                        0.0s
 => CACHED [14/35] RUN ./config -d                                                                                 0.0s
 => CACHED [15/35] RUN make                                                                                        0.0s
 => CACHED [16/35] RUN make install                                                                                0.0s
 => CACHED [17/35] WORKDIR /build                                                                                  0.0s
 => CACHED [18/35] RUN hg clone http://hg.nginx.org/nginx                                                          0.0s 
 => CACHED [19/35] WORKDIR /build/nginx                                                                            0.0s 
 => CACHED [20/35] COPY patches/nginx.latest.patch /build/nginx                                                    0.0s 
 => ERROR [21/35] RUN patch -p1 < nginx.latest.patch                                                               0.3s 
------
 > [21/35] RUN patch -p1 < nginx.latest.patch:
#0 0.260 patch: **** Only garbage was found in the patch input.
#0 0.260 patch unexpectedly ends in middle of line
------
failed to solve: executor failed running [/bin/sh -c patch -p1 < nginx.latest.patch]: exit code: 2

hsluoyz avatar Apr 13 '22 09:04 hsluoyz

@fooinha

hsluoyz avatar Apr 13 '22 09:04 hsluoyz

@fooinha any update?

hsluoyz avatar May 11 '22 06:05 hsluoyz

@hsluoyz , usually I don't build this on Windows 10, but I'll give it a try as soon I get one.

fooinha avatar May 29 '22 15:05 fooinha