Caser
Caser

Reputation: 87

Why is "docker-compose up" command giving me an error?(Closed)

I've just cloned a project and when I run command docker-compose up it's giving me

Step 2/20 : RUN apt-get update && apt-get install -y openssl     git     unzip     zlib1g-dev     libzip-dev     libgpgme11-dev     libpng-dev     -y 
gnupg     && pecl install gnupg     && docker-php-ext-enable gnupg     && docker-php-ext-install gd
1 error occurred:
        * Status: Invalid signal: SIGQUIT, Code: 1

I'm using latest version of docker, my OS is Windows 10 Pro 64. How can I solve this issue?

Upvotes: 0

Views: 3503

Answers (1)

araisch
araisch

Reputation: 1940

Wrapping up comments:

  • Typo: Second -y flag in the apt-get install command.

Steps to debug:

  • use verbose flag to get extended logs: docker compose --verbose up
  • Edit dockerfile and pull the steps apart (by creating several RUN commands instead of chaining all by &&). Then you'll see the specific command which breaks the build process.
  • Use docker build instead of compose to build this specific image without all the compose overhead (especially in big projects with several services). To change compose args to docker cli args see Reference

Upvotes: 2

Related Questions