Smol
Smol copied to clipboard
Docker error while trying to build
When trying to execute the make build
command, i get this error:
ERROR: The Compose file './docker-compose.yml' is invalid because: volumes.db-data value Additional properties are not allowed ('name' was unexpected) volumes.media-volume value Additional properties are not allowed ('name' was unexpected) volumes.ml-volume value Additional properties are not allowed ('name' was unexpected) volumes.static-previews value Additional properties are not allowed ('name' was unexpected) volumes.static-thumbnails value Additional properties are not allowed ('name' was unexpected) make: *** [Makefile:4: build] Error 1
Docker version: 20.10.9 Docker-compose version: 1.21.0 OS: Debian 10
After commenting out the following lines i get a new error
/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>. """)
bash: line 1: 8 Illegal instruction (core dumped) python manage.py makemigrations
Does the error appear in the running container or do you get it running make all?
Sorry forgot to mention that the second error happens when I try to run the stack. I narrowed it down to the django container.
worked for me after commenting the lines said by @ MaxtronGaming