Docker
docker run failed with exit code 126 because the command could not be invoked
Exit code 126 means Docker found the specified container command, but it could not be invoked as an executable inside the container.
Docker
Exit code 126 means Docker found the specified container command, but it could not be invoked as an executable inside the container.
Observed message
docker: Error response from daemon: Container command '/etc' could not be invoked.
Why it happens
How to fix it
Official reference
Docker Docs: Running containers - Exit status 126Related errors
Explore more