Docker Community Forums

Share and learn in the Docker community.

Very first command while starting up container: OCI runtime create failed: container_linux.go:370 ... no such file?


I have a container that starts with a file called / This file starts up some servers (apache, mysql, …)

Since there was a problem starting up MySQLd, I decided to move away that file, to get rid of the startup problem and then to be able to fix the errors in the script. I just renamed the file with docker exec -t -u root -i containername mv / / from a windows powershell while the was starting apache. Big mistake :slight_smile: - now the container won’t start at all:
(HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/": stat / no such file or directory: unknown

Is it possible to start that container (without rebuilding it) and undo the renaming of the file? E.g. to fire a very first command before executing

Best regards, Alex