Iam creating an image of spring boot app.
- Create jar file
- copy jar file to container tmp folder.
3.create Image : docker commit –change=”CMD [“java”, “-jar”, “/tmp/docker-demo.jar”]” sleepy_feistel pranshi/demo:v4
All these step executed successfully but when i run image.
Step 4 : docker run pranshi/demo:v4
facing this error when i run image
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed:
runc create failed: unable to start container process: exec: “java”: executable file not found in $PATH: unknown.
- Delete all the images then create again.
- Recreate jar file.
New contributor
vipin vats is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.