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 when running docker compose up #121

Open
dxkyy opened this issue Nov 27, 2024 · 1 comment
Open

Error when running docker compose up #121

dxkyy opened this issue Nov 27, 2024 · 1 comment

Comments

@dxkyy
Copy link

dxkyy commented Nov 27, 2024

When running docker compose up
I get this:

Z:\docker\comfyui>docker compose up
time="2024-11-27T20:03:49+01:00" level=warning msg="Z:\\docker\\comfyui\\docker-compose.yaml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion"
[+] Running 1/1
 ! supervisor Warning manifest unknown                                                                                                                                                                                                                                                                0.9s
[+] Building 101.7s (7/12)                                                                                                                                                                                                                                                            docker:desktop-linux
 => [supervisor internal] load build definition from Dockerfile                                                                                                                                                                                                                                       0.1s
 => => transferring dockerfile: 1.65kB                                                                                                                                                                                                                                                                0.0s
 => [supervisor internal] load metadata for ghcr.io/ai-dock/python:3.10-v2-cuda-12.1.1-base-22.04                                                                                                                                                                                                     1.1s
 => [supervisor internal] load .dockerignore                                                                                                                                                                                                                                                          0.7s
 => => transferring context: 2B                                                                                                                                                                                                                                                                       0.0s
 => [supervisor 1/8] FROM ghcr.io/ai-dock/python:3.10-v2-cuda-12.1.1-base-22.04@sha256:6e1770cb6902cb5c9404e4a8f8895b97fedcba508e6e65e004442332949b08a6                                                                                                                                              98.1s
 => => resolve ghcr.io/ai-dock/python:3.10-v2-cuda-12.1.1-base-22.04@sha256:6e1770cb6902cb5c9404e4a8f8895b97fedcba508e6e65e004442332949b08a6                                                                                                                                                          0.0s
 => => sha256:f91ced0f455f328fd40607e7029464a2169cf9b306efa962cdfbe07a93ea3c1d 16.47kB / 16.47kB                                                                                                                                                                                                      0.0s
 => => sha256:6e1770cb6902cb5c9404e4a8f8895b97fedcba508e6e65e004442332949b08a6 2.42kB / 2.42kB                                                                                                                                                                                                        0.0s
 => => sha256:43f89b94cd7df92a2f7e565b8fb1b7f502eff2cd225508cbd7ea2d36a9a3a601 30.44MB / 30.44MB                                                                                                                                                                                                      2.3s
 => => sha256:b0d7cc89b769c1d6a46d85393516b303afeeee8d8bcbcdadb9cc9a452728cf27 55.73MB / 55.73MB                                                                                                                                                                                                      3.9s
 => => sha256:dd4939a047617694ff7585d2d828e574bcdb1a0e870d41ba1abad6db61fca814 4.62MB / 4.62MB                                                                                                                                                                                                        0.7s
 => => sha256:1532d9024b9c102cb1b19cfd585e8735a1efc882bfa9243f6662b47e033c0c2c 185B / 185B                                                                                                                                                                                                            1.0s
 => => sha256:04fc8a31fa53f7fd9ba45a2d109618449fd5f9d9b3f12d1cf961f4c0a0a34500 6.88kB / 6.88kB                                                                                                                                                                                                        1.3s
 => => sha256:98cc579aa6c4f0a65da59ca64309547eddf444e86a932a08c2f81916b1aa3d25 14.67MB / 14.67MB                                                                                                                                                                                                      2.7s
 => => sha256:69b0e7170c38caf82cc0aea513664bcf56fc59769694255d2a0a86c7b9f3adf4 55.91kB / 55.91kB                                                                                                                                                                                                      2.6s
 => => extracting sha256:43f89b94cd7df92a2f7e565b8fb1b7f502eff2cd225508cbd7ea2d36a9a3a601                                                                                                                                                                                                             2.5s
 => => sha256:eb1f741c6dcdeecfea23699f40958295e6919e8abd9847b24a9a41b886248b3f 695.02MB / 695.02MB                                                                                                                                                                                                   26.9s
 => => sha256:7b22d18c6f7137b794fc306535cfb11651696384dc2b00253b6944a34daf933d 2.99kB / 2.99kB                                                                                                                                                                                                        2.9s
 => => sha256:3a9c91400879eb57583e3b1e083c004e452af81a0c8f75addecd80b851263a2b 114.68MB / 114.68MB                                                                                                                                                                                                   10.1s
 => => extracting sha256:dd4939a047617694ff7585d2d828e574bcdb1a0e870d41ba1abad6db61fca814                                                                                                                                                                                                             0.4s
 => => extracting sha256:b0d7cc89b769c1d6a46d85393516b303afeeee8d8bcbcdadb9cc9a452728cf27                                                                                                                                                                                                             1.7s
 => => extracting sha256:1532d9024b9c102cb1b19cfd585e8735a1efc882bfa9243f6662b47e033c0c2c                                                                                                                                                                                                             0.0s
 => => extracting sha256:04fc8a31fa53f7fd9ba45a2d109618449fd5f9d9b3f12d1cf961f4c0a0a34500                                                                                                                                                                                                             0.0s
 => => extracting sha256:98cc579aa6c4f0a65da59ca64309547eddf444e86a932a08c2f81916b1aa3d25                                                                                                                                                                                                             0.5s
 => => extracting sha256:69b0e7170c38caf82cc0aea513664bcf56fc59769694255d2a0a86c7b9f3adf4                                                                                                                                                                                                             0.0s
 => => extracting sha256:eb1f741c6dcdeecfea23699f40958295e6919e8abd9847b24a9a41b886248b3f                                                                                                                                                                                                            55.2s
 => => extracting sha256:7b22d18c6f7137b794fc306535cfb11651696384dc2b00253b6944a34daf933d                                                                                                                                                                                                             0.0s
 => => extracting sha256:3a9c91400879eb57583e3b1e083c004e452af81a0c8f75addecd80b851263a2b                                                                                                                                                                                                            14.5s
 => [supervisor internal] load build context                                                                                                                                                                                                                                                          0.4s
 => => transferring context: 63.48kB                                                                                                                                                                                                                                                                  0.3s
 => [supervisor 2/8] COPY --chown=0:1111 ./COPY_ROOT_0/ /                                                                                                                                                                                                                                             1.0s
 => ERROR [supervisor 3/8] RUN set -eo pipefail && /opt/ai-dock/bin/build/layer0/init.sh | tee /var/log/build.log                                                                                                                                                                                     0.4s
------
 > [supervisor 3/8] RUN set -eo pipefail && /opt/ai-dock/bin/build/layer0/init.sh | tee /var/log/build.log:
0.388 /bin/bash: /opt/ai-dock/bin/build/layer0/init.sh: /bin/bash^M: bad interpreter: No such file or directory
------
failed to solve: process "/bin/bash -c set -eo pipefail && /opt/ai-dock/bin/build/layer0/init.sh | tee /var/log/build.log" did not complete successfully: exit code: 126
@Wahcsas
Copy link

Wahcsas commented Dec 20, 2024

Had the same error, when trying to run docker compose on windows docker.
Somehow the file endings for all the scripts were messed up after I cloned the image.
The solutuion for me was to change the line endings of all the script files (*.sh) from windows CRLF (\r\n) to Unix/Linux LF (\n)

I change all the fileendings of the sh files in:

  • build/COPY_ROOT_0/opt/ai-dock/bin/build/layer0
  • build/COPY_ROOT_1/opt/ai-dock/bin/build/layer1
  • build/COPY_ROOT_99/opt/ai-dock/bin/build/layer99

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