Failed to execute script docker-compose. IndexError: list index out of range | IndexError: list index out of range [64914] Failed to execute script docker-compose

Ask questions Research chat →

https://github.com/docker/compose/issues/8494 · scraped

deploy terminal

Attachments

Scraped Content

— 422 words · 2026-02-14 17:39:18 UTC ·

Excerpt

IndexError: list index out of range [64914] Failed to execute script docker-compose ![](https://prod-files-secure.s3.us-west-2.amazonaws.com/871f1661-80b8-4d0c-ac3b-2adfc6ff4c66/af7d6bf5-12ba-45e4-bf63-38a8e55e6e7a/8494?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ASIAZI2LB466RE34WXYY%2F20260214%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20260214T173917Z&X-Amz-Expires=3600&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEEEaCXVzLXdlc3QtMiJHMEUCIBhN36pz55TJM9uiYtGCJ1JQHQLX2zqYI3kcwo4I1yi5AiEAv8Qo5n%2F%2F39LzR1dYNuZSNbudQKvDnwTo8ObyP6c0w0Qq%2FwMIChAAGgw2Mzc0MjMxODM4MDUiDHLY0BexwQYc8HCp8SrcA8PUBdDXXFWJqBDAlgPS85unBeBP8B9D%2B7tutVZfBa9cvcWqu3Ru%2BmxzG96wuUpeAFdIzsuLulnbzt5Nj9Sj5qjrva3RJU7VjFgQxDLwWtT3hABeMxenn2AE%2BSIPnzY7k%2F1Yox7hWaqh3t0PmMQ7Apc5nCXaSD5D4J0jqAhQzYx48NxSRPtsip3DvtzYZ6Pole7pAvBA%2BXZnYQyLdomiTmUV4fsUP6U4ER3%2FCCViUtQgXq7XJDvYHLhCHgDlCCb14qyPsNABoXsCt%2FYjISPSvT0Ynp2xxNZl1lAo8UwhOP50%2BXVenQ9mnwmKfkePr5EJ2lmwNrRS%2BfPOt1PGAJCz3aMqZ%2BLLWeGYZ
IndexError: list index out of range [64914] Failed to execute script docker-compose ![](https://prod-files-secure.s3.us-west-2.amazonaws.com/871f1661-80b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pi37GIuBUXOvc%2BGp6SDpkqTQGyppMrzcXdpFMKfRwswGOqUBD11Hy3HmZ0q41dqzNqy0hgjd%2FEO8j%2FelfFcEFuKEHtqYy5WPo9aMOyNrFHPs5ulY4FmXowS5Dnl%2Fl6q2o0s8A1N5Fz%2FKnNV%2BA3fFYFTst9X50JiCUSTmcqwZhlY1ibYHuCtyIzhyZ6qKyWoDRQ1k2BFkbN6uB7%2BAVcBhTmEfgoHg4lWmQP6kd5yqhfeNv%2BSXhFFoRiqcGNbMH55LcL5eWBNwbN92&X-Amz-Signature=c8f09f0a84c0ec27adc67d07cacaa4983c06a6b1dcad5aa85e0b756cd88b9d8b&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject) ## Description of the issue docker-compose build (in two separate projects) fails ## Context information (for bug reports) Output of docker-compose version ```plain text $ docker-compose version docker-compose version 1.29.2, build 5becea4c docker-py version: 5.0.0 CPython version: 3.7.10 OpenSSL version: OpenSSL 1.1.0l 10 Sep 2019 ``` Output of docker version ```plain text (paste here) ``` Output of docker-compose config (Make sure to add the relevant -f and other flags) ```plain text docker-compose config services: server: build: context: /home/leeh/code/stuart/gov-arch-modelling command: - java - -Djava.awt.headless=true - -jar - /plantuml.jar - -picoweb ports: - published: 8095 target: 8080 version: '3.9' ``` ## Steps to reproduce the issue 1. Run any docker-compose build 2. Observe failure as denoted ### Observed result Build fails with a python error, in my limited debugging capabilties, I have traced that to a fault with the iidfile being empty in class _CLIBuilder's build function. Line #1950 https://github.com/docker/compose/blob/master/compose/service.py#L1948-L1951 ### Expected result Build succeeds ### Stacktrace / full error message ```plain text docker-compose build Building server WARN[0000] No output specified for docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load [+] Building 2.1s (7/7) FINISHED => [internal] load build definition from Dockerfile 0.3s => => transferring dockerfile: 789B 0.0s => [internal] load .dockerignore 0.3s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/openjdk:17-jdk-alpine3.14 1.4s => [1/4] FROM docker.io/library/openjdk:17-jdk-alpine3.14@sha256:4b6abae565492dbe9e7a894137c966a7485154238902f2f25e9dbd9784383d81 0.3s => => resolve docker.io/library/openjdk:17-jdk-alpine3.14@sha256:4b6abae565492dbe9e7a894137c966a7485154238902f2f25e9dbd9784383d81 0.2s => CACHED [2/4] RUN apk add --no-cache graphviz-dev wget ca-certificates ttf-dejavu fontconfig && wget "http://downloads.sourceforge.net/project/plantuml/1.2021.9/plantuml.1.2021.9.jar" -O plantuml.jar & 0.0s => CACHED [3/4] RUN ["java", "-Djava.awt.headless=true", "-jar", "/plantuml.jar", "-version"] 0.0s => CACHED [4/4] RUN ["dot", "-version"] 0.0s Traceback (most recent call last): File "docker-compose", line 3, in <module> File "compose/cli/main.py", line 81, in main File "compose/cli/main.py", line 203, in perform_command File "compose/metrics/decorator.py", line 18, in wrapper File "compose/cli/main.py", line 380, in build File "compose/project.py", line 519, in build File "compose/project.py", line 501, in build_service File "compose/service.py", line 1133, in build File "compose/service.py", line 1950, in build IndexError: list index out of range [64914] Failed to execute script docker-compose ``` ## Additional information Docker Compose from RPM (at 1.27, or .28 or something) or from the curl|bash install method The error goes away if I disable buildkit explicitly (e.g export COMPOSE_DOCKER_CLI_BUILD=0) however my build depends upon the -mount option to share an SSH key socket with one of my builds, so I cannot build my actual project.

Visibility

Visible to everyone

Reading Status

Related Bookmarks

My Note


Saved!

Annotations

Export as Markdown
+ Annotate selection

Add Annotation