docker : Error response from daemon: dockerfile parse error line 19: unknown instruction: APT-GET #85

Open
opened 2025-11-06 14:18:17 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @jurivero on GitHub (Apr 23, 2023).

run docker compose up -d on the angular example and I get
docker : Error response from daemon: dockerfile parse error line 19: unknown instruction: APT-GET
I am on a windows machine and I have installed docker for windows

Originally created by @jurivero on GitHub (Apr 23, 2023). run docker compose up -d on the angular example and I get docker : Error response from daemon: dockerfile parse error line 19: unknown instruction: APT-GET I am on a windows machine and I have installed docker for windows
Author
Owner

@Steph-gautier commented on GitHub (Apr 26, 2023):

Had this same issue today. We can see this:
`RUN <<EOF
apt-get update
apt-get install -y --no-install-recommends git
EOF

RUN <<EOF
useradd -s /bin/bash -m vscode
groupadd docker
usermod -aG docker vscode
EOF`

Probably wrong merges cause this

@Steph-gautier commented on GitHub (Apr 26, 2023): Had this same issue today. We can see this: `RUN <<EOF apt-get update apt-get install -y --no-install-recommends git EOF RUN <<EOF useradd -s /bin/bash -m vscode groupadd docker usermod -aG docker vscode EOF` Probably wrong merges cause this
Author
Owner

@isidroas commented on GitHub (May 5, 2023):

That is called here-document.

This answer helped me: https://stackoverflow.com/a/75160729/16926605

@isidroas commented on GitHub (May 5, 2023): That is called here-document. This answer helped me: https://stackoverflow.com/a/75160729/16926605
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-compose#85