Docker Community Forums

Share and learn in the Docker community.

ERROR: Service 'app' failed to build: Invalid signal: SIGQUIT

PS D:\> docker-compose up

Building app
Step 1/7 : FROM php:7.4-fpm-alpine
—> 5ae58b49885c
Step 2/7 : RUN apk add --no-cache autoconf curl dpkg-dev dpkg freetype-dev file g++ gcc git icu-dev jpeg-dev libc-dev libmcrypt-dev libpng-dev libjpeg-turbo-dev libxml2-dev libzip-dev make mariadb-dev postgresql-dev pkgconf php7-dev re2c rsync unzip wget zlib-dev
ERROR: Service ‘app’ failed to build: Invalid signal: SIGQUIT

Running:

docker run -ti 5ae58b49885c apk add --no-cache autoconf curl dpkg-dev dpkg freetype-dev file g++ gcc git icu-dev jpeg-dev libc-dev libmcrypt-dev libpng-dev libjpeg-turbo-dev libxml2-dev libzip-dev make mariadb-dev postgresql-dev pkgconf php7-dev re2c rsync unzip wget zlib-dev

seems to work except for the error at the end:

[...]
OK: 392 MiB in 105 packages
time="2020-05-23T11:54:06+05:00" level=error msg="Error waiting for container: failed to shutdown container: container 4e49e4bb8234f213ed580978bc3a4f4cacff549f91affcf82783a2703f341ddb encountered an error during hcsshim::System::waitBackground: failure in a Windows system call: The virtual machine or container with the specified identifier is not running. (0xc0370110): subsequent terminate failed container 4e49e4bb8234f213ed580978bc3a4f4cacff549f91affcf82783a2703f341ddb encountered an error during hcsshim::System::waitBackground: failure in a Windows system call: The virtual machine or container with the specified identifier is not running. (0xc0370110)"

Version: 19.03.8
OS/Arch: windows/amd64
Experimental: true

Switching containers doesn’t help. What can I do or how to debug?
Thank you.

Latest edge release 2.3.1.0 fixed this and many others problems

Is it necessary to be in virtual environment when running the below command?

No, the docker build environment is isolated from the host. Any virtualenv on the host is ignored on the build context and the resulting image.

I have gone through docker basic videos which says it saves each apps as images. But where these images are saved?.

The images are stored somewhere in /var/lib/docker but isn’t meant to be browsed manually. You can send the images somewhere with docker push image:tag or save them with docker save image:tag -o .tar

Does this line make the current pc root directory or dockers Image ’ WORKDIR > /usr/src/app’

That line change the current workdir on the image.

ERROR: Service ‘app’ failed to build: ADD failed: stat /var/lib/docker/tmp/docker-builder912263941/config/requirements.txt: no such file or directory
This error means that you do not have config/requirements.txt in your current directory where build is run. Adjust your path on the Dockerfile properly.