You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docker-compose run fails with "cannot execute binary file" #5281
I believe this is because somehow bash is getting set as the entrypoint (despite the fact that bash does not appear in docker-compose.yml nor the Dockerfile ... perhaps in the image the Dockerfile inherits FROM?), so it's trying to run ls as a bash script.
This works, but I find it a more awkward command line to construct:
docker-compose run --rm --entrypoint 'ls -l' foo
docker-compose version 1.16.1, build 6d1ac21
docker-py version: 2.5.1
CPython version: 2.7.12
on OS X
Activity
shin- commentedon Oct 17, 2017
The issue is with your image, not
docker-compose.keturn commentedon Oct 18, 2017
Ah, entrypoint may be changed with
docker commit, which is a likely cause of this.Related: https://stackoverflow.com/questions/29015023/docker-commit-created-images-and-entrypoint
ci: add exportloopref linter and upgrade to golangci-lint v1.43.0 (do…
ci: add exportloopref linter and upgrade to golangci-lint v1.43.0 (do…
ci: add exportloopref linter and upgrade to golangci-lint v1.43.0 (do…
ci: add exportloopref linter and upgrade to golangci-lint v1.43.0 (do…
ci: add exportloopref linter and upgrade to golangci-lint v1.43.0 (#5281