stable-diffusion-webui-docker
stable-diffusion-webui-docker copied to clipboard
exec format error
Has this issue been opened before?
Describe the bug
After running docker compose --profile invoke up --build, I hit the below.
=> [invoke xformers 1/3] FROM docker.io/library/alpine:3.17@sha256:53cf9478b76f4c8fae126acbdfb79bed6e69e628faff572ebe4a029d3d247d98 0.7s
=> => resolve docker.io/library/alpine:3.17@sha256:53cf9478b76f4c8fae126acbdfb79bed6e69e628faff572ebe4a029d3d247d98 0.1s
=> => sha256:53cf9478b76f4c8fae126acbdfb79bed6e69e628faff572ebe4a029d3d247d98 1.64kB / 1.64kB 0.0s
=> => sha256:74440a3ca0e58af8aa796467285de45d0e079067c79200f2cfab30d6a38051d8 528B / 528B 0.0s
=> => sha256:f0fd8fe16bfa55179c65d208ce8abf58197e85136f6a1dc543d2136424fd665c 1.49kB / 1.49kB 0.0s
=> => sha256:5385a9a590c3e2872b3ed27554a56fb7ce544c694b41b9b95d70fa86f30b0566 3.26MB / 3.26MB 0.3s
=> => extracting sha256:5385a9a590c3e2872b3ed27554a56fb7ce544c694b41b9b95d70fa86f30b0566 0.1s
=> [invoke xformers 2/3] RUN apk add --no-cache aria2 63.4s
=> [invoke xformers 3/3] RUN aria2c -x 5 --dir / --out wheel.whl 'https://github.com/AbdBarho/stable-diffusion-webui-docker/releases/download/6.0.0/xformers- 63.8s
=> ERROR [invoke stage-1 2/8] RUN --mount=type=cache,target=/var/cache/apt apt-get update && apt-get install make g++ git libopencv-dev -y && apt-get c 55.3s
------
> [invoke stage-1 2/8] RUN --mount=type=cache,target=/var/cache/apt apt-get update && apt-get install make g++ git libopencv-dev -y && apt-get clean && cd /usr/lib/x86_64-linux-gnu/pkgconfig/ && ln -sf opencv4.pc opencv.pc:
1.568 exec /bin/sh: exec format error
------
failed to solve: process "/bin/sh -c apt-get update && apt-get install make g++ git libopencv-dev -y && apt-get clean && cd /usr/lib/x86_64-linux-gnu/pkgconfig/ && ln -sf opencv4.pc opencv.pc" did not complete successfully: exit code: 1
ubuntu@instance-20230910-1418:~/stablediffusion-webui$
Which UI
auto or auto-cpu or invoke or comfy? invoke
Hardware / Software
- OS: [e.g. Windows 10 / Ubuntu 22.04]
- OS version: Ubuntu 22.04.3 LTS
- WSL version (if applicable):
- Docker Version: 24.0.6
- Docker compose version: v2.21.0
- Repo version: master
- RAM: 24GB
- GPU/VRAM: No.
hey @saidhasyim did you find any solution for this?
hey @saidhasyim did you find any solution for this?
No. Unfortunately
I also have the issue when:
root@instance-20240819-2322:~/stable-diffusion-webui-docker# docker-compose --profile auto-cpu up --build [+] Building 1.1s (12/24) => [auto-cpu internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [auto-cpu internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2.96kB 0.0s => [auto-cpu internal] load metadata for docker.io/pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime 0.6s => [auto-cpu internal] load metadata for docker.io/alpine/git:2.36.2 0.6s => [auto-cpu download 1/9] FROM docker.io/alpine/git:2.36.2@sha256:ec491c893597b68c92b88023827faa771772cfd5e106b76c713fa5e1c75dea84 0.0s => [auto-cpu internal] load build context 0.0s => => transferring context: 122B 0.0s => CACHED [auto-cpu stage-1 1/11] FROM docker.io/pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime@sha256:0279f7aa29974bf64e61d0ff6e979b41a249b3662a46e30778 0.0s => ERROR [auto-cpu stage-1 2/11] RUN --mount=type=cache,target=/var/cache/apt apt-get update && apt-get install -y fonts-dejavu-core rsync git jq mo 0.4s => CACHED [auto-cpu download 2/9] COPY clone.sh /clone.sh 0.0s => CACHED [auto-cpu download 3/9] RUN . /clone.sh stable-diffusion-webui-assets https://github.com/AUTOMATIC1111/stable-diffusion-webui-assets.git 6f7db2 0.0s => CACHED [auto-cpu download 4/9] RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git cf1d67a6fd5ea1aa600c4 0.0s => CANCELED [auto-cpu download 5/9] RUN . /clone.sh BLIP https://github.com/salesforce/BLIP.git 48211a1594f1321b00f14c9f7a5b4813144b2fb9 0.5s
[auto-cpu stage-1 2/11] RUN --mount=type=cache,target=/var/cache/apt apt-get update && apt-get install -y fonts-dejavu-core rsync git jq moreutils aria2 ffmpeg libglfw3-dev libgles2-mesa-dev pkg-config libcairo2 libcairo2-dev build-essential: 0.344 exec /bin/sh: exec format error
failed to solve: process "/bin/sh -c apt-get update && apt-get install -y fonts-dejavu-core rsync git jq moreutils aria2 ffmpeg libglfw3-dev libgles2-mesa-dev pkg-config libcairo2 libcairo2-dev build-essential" did not complete successfully: exit code: 1 root@instance-20240819-2322:~/stable-diffusion-webui-docker# docker-compose --profile comfy-cpu up --build [+] Building 0.8s (6/10) => [comfy-cpu internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 797B 0.0s => [comfy-cpu internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [comfy-cpu internal] load metadata for docker.io/pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime 0.6s => [comfy-cpu internal] load build context 0.0s => => transferring context: 2.19kB 0.0s => CACHED [comfy-cpu stage-0 1/6] FROM docker.io/pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime@sha256:0279f7aa29974bf64e61d0ff6e979b41a249b3662a46e30778d 0.0s => ERROR [comfy-cpu stage-0 2/6] RUN apt-get update && apt-get install -y git && apt-get clean 0.2s
[comfy-cpu stage-0 2/6] RUN apt-get update && apt-get install -y git && apt-get clean: 0.171 exec /bin/sh: exec format error
failed to solve: process "/bin/sh -c apt-get update && apt-get install -y git && apt-get clean" did not complete successfully: exit code: 1