awesome-compose icon indicating copy to clipboard operation
awesome-compose copied to clipboard

containers not coming up due to "unknown instruction" for backend image

Open rkhanna1401 opened this issue 2 years ago • 1 comments

Hi, I have imported this project and was running the project using docker compose file but getting below error:

xxxxxxxxxxxxxx:~/app/awesome-compose/react-java-mysql# docker-compose up -d Building backend Sending build context to Docker daemon 25.09kB Error response from daemon: dockerfile parse error line 14: unknown instruction: APT-GET ERROR: Service 'backend' failed to build : Build failed.

Tried commenting APT-GET instruction but then similar errors are seen for subsequent commands.

rkhanna1401 avatar Jan 13 '23 09:01 rkhanna1401

Hi @rkhanna1401! Thanks for opening an issue.

The error you're seeing is most likely due to an older version of the Docker builder. Support for heredoc in the Dockerfile was added around July of 2021 (blog post here). Take a look at what version of Docker you're running and consider updating where possible.

If you're still having issues, let us know and we'll help you dive in deeper.

mikesir87 avatar Jan 13 '23 13:01 mikesir87