stable-diffusion-webui-docker icon indicating copy to clipboard operation
stable-diffusion-webui-docker copied to clipboard

Compose won't build

Open pixartist opened this issue 2 years ago • 2 comments

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

pixartist avatar Sep 01 '22 06:09 pixartist

update to latest docker and docker compose. use docker compose instead of docker-compose

Related #6

AbdBarho avatar Sep 01 '22 07:09 AbdBarho

Ran into the same issue, I had to update docker(was on a rather old version).

tr7zw avatar Sep 01 '22 14:09 tr7zw

Or make heredoc to multiline bash RUN

fivethreeo avatar Sep 06 '22 19:09 fivethreeo

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

shodanx2 avatar Sep 09 '22 23:09 shodanx2

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

isapir avatar Sep 11 '22 04:09 isapir

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.

github-actions[bot] avatar Sep 26 '22 04:09 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Oct 04 '22 03:10 github-actions[bot]

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

Paulie420 avatar Dec 27 '22 04:12 Paulie420