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

Compose won't build #16

Closed
pixartist opened this issue Sep 1, 2022 · 8 comments
Closed

Compose won't build #16

pixartist opened this issue Sep 1, 2022 · 8 comments
Labels
awaiting-response Waiting for the issuer to respond bug Something isn't working Stale

Comments

@pixartist
Copy link

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 pixartist added the bug Something isn't working label Sep 1, 2022
@AbdBarho
Copy link
Owner

AbdBarho commented Sep 1, 2022

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

Related #6

@AbdBarho AbdBarho added the awaiting-response Waiting for the issuer to respond label Sep 1, 2022
@tr7zw
Copy link

tr7zw commented Sep 1, 2022

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

@fivethreeo
Copy link

Or make heredoc to multiline bash RUN

@shodanx2
Copy link

shodanx2 commented Sep 9, 2022

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

@isapir
Copy link

isapir commented Sep 11, 2022

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

@github-actions
Copy link

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 github-actions bot added the Stale label Sep 26, 2022
@github-actions
Copy link

github-actions bot commented Oct 4, 2022

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

@Paulie420
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-response Waiting for the issuer to respond bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

7 participants