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

Open
opened 2026-03-07 21:21:27 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @rkhanna1401 on GitHub (Jan 13, 2023).

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.

Originally created by @rkhanna1401 on GitHub (Jan 13, 2023). 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.
Author
Owner

@mikesir87 commented on GitHub (Jan 13, 2023):

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 commented on GitHub (Jan 13, 2023): 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](https://www.docker.com/blog/introduction-to-heredocs-in-dockerfiles/)). 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-compose#666