Docker Community Forums

Share and learn in the Docker community.

Exec format error: unknown

ERROR message I get
OCI runtime exec failed: exec failed: container_linux.go:367: starting container process caused: exec format error: unknown

Running docker 20.10.2 on Ubuntu 20.04.2 LTS
docker-compose 1.25.0

How do I troubleshoot this?

I’m running docker-compose exec pipeline test/antares/pipeline/pipeline_integration_test.py

This works on a macbook.

Hi.

Its because you’re trying to run an ARM container on a AMD64 host, or the other way around

Thanks Martin!

I got further by adding #!/usr/bin/python at the top of the python script. What you say makes sense give the limited information I provided though!

Thanks,
Adam

yea and if I read earlier, that you were trying to exec a python script I might have giving you a better answer :smiley: