Compose shlex-splits 'command: |' block scalar into a list when used with 'entrypoint: ["/bin/sh","-c"]'. Docker then runs '/bin/sh -c exec' where 'exec' is the only -c argument and '/app/llama-server' becomes $0. 'exec' with no program in sh exits 0 immediately → 37-restart crash-loop, no server. Fix: use 'entrypoint: []' and 'command: [/bin/sh, -c, <|block>]' so the full shell command is passed as a single list element — not further split by Compose.
11 KiB
11 KiB