Docker Desktop V4.21.1 on Windows 11
docker commit --change=‘ENTRYPOINT [“/bin/sh”,“-c”,“/startup.sh”]’ …
What I want is to exec ‘/bin/sh -c /startup.sh’,but it returns ‘[/bin/bash,-c,/startup.sh] not found’ error when container start up .
Inspect result:
“Entrypoint”: [
“/bin/sh”,
“-c”,
“[/bin/bash,-c,/startup.sh]”
]
This is the problem, and it does 't happen on linux with docker.
By the way, it does not happen in Dockfile.