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

ERROR [php-fpm internal] load build context when building #13

Closed
xnekv03 opened this issue Feb 4, 2024 · 3 comments
Closed

ERROR [php-fpm internal] load build context when building #13

xnekv03 opened this issue Feb 4, 2024 · 3 comments

Comments

@xnekv03
Copy link

xnekv03 commented Feb 4, 2024

Hello,
I am getting this error in my Docker for Windows.

conf.d is exactly identical to what you have in repo

Could you please advise?

Thank you

PS C:\Users\Vinny\Desktop\various\application> docker compose build
[+] Building 0.0s (0/0)  docker:default
2024/02/04 13:16:22 http2: server: error reading preface from client //./pipe/docker_engine: file has already been closed
[+] Building 3.8s (11/36)                                                                                                                                                                           docker:default
 => [node internal] load build definition from Dockerfile                                                                                                                                                     0.0s
 => => transferring dockerfile: 182B                                                                                                                                                                          0.0s
 => [node internal] load metadata for docker.io/library/node:14                                                                                                                                               3.5s
 => [php-fpm internal] load build definition from Dockerfile                                                                                                                                                  0.0s
 => => transferring dockerfile: 4.79kB                                                                                                                                                                        0.0s
 => [php-fpm internal] load metadata for docker.io/library/composer:latest                                                                                                                                    3.4s
 => [php-fpm internal] load metadata for docker.io/library/php:8.2-fpm                                                                                                                                        3.4s
 => [php-fpm internal] load .dockerignore                                                                                                                                                                     0.0s
 => => transferring context: 2B                                                                                                                                                                               0.0s
 => [node internal] load .dockerignore                                                                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                                                                               0.0s
 => ERROR [php-fpm internal] load build context                                                                                                                                                               0.0s
 => => transferring context: 38B                                                                                                                                                                              0.0s
 => CANCELED [php-fpm] FROM docker.io/library/composer:latest@sha256:6d19e1002b091908fc4654725d4055125f181c1b6d7610206b0ee31b8419a5fc                                                                         0.1s
 => => resolve docker.io/library/composer:latest@sha256:6d19e1002b091908fc4654725d4055125f181c1b6d7610206b0ee31b8419a5fc                                                                                      0.0s
 => => sha256:e2bba1f537c99c7fd18bf199bf035d534be95ae8be923d8689a1928dd097de84 11.62kB / 11.62kB                                                                                                              0.0s
 => => sha256:6d19e1002b091908fc4654725d4055125f181c1b6d7610206b0ee31b8419a5fc 1.65kB / 1.65kB                                                                                                                0.0s
 => => sha256:572efdb615b8a744555bab9f1d0798cd1e01e874aea8f8fa99541f5015223921 3.25kB / 3.25kB                                                                                                                0.0s
 => CANCELED [php-fpm stage-0  1/24] FROM docker.io/library/php:8.2-fpm@sha256:e8fdc73d8c327d068c3503584b0b012a7bd1ed7d7fd23aeb8b48f6cdacb2f3b6                                                               0.1s
 => => resolve docker.io/library/php:8.2-fpm@sha256:e8fdc73d8c327d068c3503584b0b012a7bd1ed7d7fd23aeb8b48f6cdacb2f3b6                                                                                          0.1s
 => => sha256:e8fdc73d8c327d068c3503584b0b012a7bd1ed7d7fd23aeb8b48f6cdacb2f3b6 1.86kB / 1.86kB                                                                                                                0.0s
 => => sha256:8de50d80f330f155b93e58290d810953532aae4ae4bc71466bee56c33605f359 2.41kB / 2.41kB                                                                                                                0.0s
 => => sha256:ee0488c74208e2a402fafe8752e75223f556ddcffc27fced11e369142a181d99 11.95kB / 11.95kB                                                                                                              0.0s
 => CANCELED [node 1/3] FROM docker.io/library/node:14@sha256:a158d3b9b4e3fa813fa6c8c590b8f0a860e015ad4e59bbce5744d2f6fd8461aa                                                                                0.3s
 => => resolve docker.io/library/node:14@sha256:a158d3b9b4e3fa813fa6c8c590b8f0a860e015ad4e59bbce5744d2f6fd8461aa                                                                                              0.0s
 => => sha256:2cafa3fbb0b6529ee4726b4f599ec27ee557ea3dea7019182323b3779959927f 2.21kB / 2.21kB                                                                                                                0.0s
 => => sha256:1d12470fa662a2a5cb50378dcdc8ea228c1735747db410bbefb8e2d9144b5452 7.51kB / 7.51kB                                                                                                                0.0s
 => => sha256:a158d3b9b4e3fa813fa6c8c590b8f0a860e015ad4e59bbce5744d2f6fd8461aa 776B / 776B                                                                                                                    0.0s
------
 > [php-fpm internal] load build context:
------
failed to solve: changes out of order: "conf.d/opcache.ini" ""

@eleftrik
Copy link
Owner

eleftrik commented Feb 6, 2024

Hi @xnekv03, honestly I have no idea about the error. I remember always having a lot of troubles with Docker on Windows (I mean in general, not with this project).

With which version of PHP did you get that error?
Did you try to disable OPCache?

Anyway, I guess the problem is specific to Docker for Windows: docker/for-win#13611

@xnekv03
Copy link
Author

xnekv03 commented Feb 8, 2024

Sure, it's really related to Docker for Windows

I switched to Linux virtual machine and everything running smooth

You can close that, thanks

@eleftrik
Copy link
Owner

eleftrik commented Feb 9, 2024

Thanks for your feedback, @xnekv03!

@eleftrik eleftrik closed this as completed Feb 9, 2024
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

No branches or pull requests

2 participants