How do i debug this issue, I was using archlinux:latest as a base image i was installing packages with my own repositories and pacman and yay
Run the container interactively and then execute manually what would have run automatically in the container:
docker run --rm -it archlinux:latest
Then it is probably not a container issue anymore, but make sure you run the command from the same directory which would be the WORKDIR (as defined in Dockerfile) in the container. docker container inspect CONTAINERNAME
can tell you what it is (as WorkingDir).
You can also search for “exit code 127” on Google and find that it is usually “command not found” so either you ran the command from the wrong directory or the command is not in PATH and you did not start the command with a relative (./
) or absolute path.