stable-diffusion-webui-docker
stable-diffusion-webui-docker copied to clipboard
Compose won't build
Has this issue been opened before? Check issues here and in this one as well
Describe the bug running docker-compose build causes
Error response from daemon: dockerfile parse error line 33: unknown instruction: GIT
ERROR: Service 'model' failed to build : Build failed
Hardware / Software:
- Ubuntu 22
update to latest docker and docker compose.
use docker compose
instead of docker-compose
Related #6
Ran into the same issue, I had to update docker(was on a rather old version).
Or make heredoc to multiline bash RUN
Hi
Having the same issue
root@stablediffusion:/opt/stable-diffusion-webui-docker# docker-compose build
Building model
Sending build context to Docker daemon 7.168kB
Error response from daemon: dockerfile parse error line 14: unknown instruction: GIT
ERROR: Service 'model' failed to build : Build failed
root@stablediffusion:/opt/stable-diffusion-webui-docker# docker --version
Docker version 20.10.12, build 20.10.12-0ubuntu4
root@stablediffusion:/opt/stable-diffusion-webui-docker# docker compose build
docker: 'compose' is not a docker command.
See 'docker --help'
Even though I have a very recent docker , something changed between 20.10.12 and 20.10.18 and now you need the latest
On ubuntu, upgrading was as easy as
apt remove docker-compose
apt -y install curl
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
then you can resume your stablediffusion installation
installing the docker-compose-plugin
[1] on Ubuntu resolved the issue for me:
sudo apt install docker-compose-plugin
[1] https://docs.docker.com/compose/install/linux/#install-the-plugin-manually
This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
For the last poster, dont just install docker-compose by 'sudo apt install docker-compose' ... you want to install the newest docker compose (see, not docker-compose...) by following this : https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-22-04 If yer not using 22.04, google search 'ubuntu docker compose' and select the digitalocean.com howto for your ubuntu version... this is different than installing docker-compose. :P