Unable to run a docker image built. When I run with the command
docker run -p 8080:8080 -t {image prefix name}/{image name}
I get a message "no main manifest attribute, in app.jar"
Using docker-maven-plugin and tried maven-assembly-plugin with main class called out explicitly.
docker version Boot2Docker 1.7.0
The manifest inside the jar file inside the Docker image does not contain what you expect it to, causing the failure to start when running with java -jar ...
I would suggest you debug your procedure locally first:
Further details in the official Oracle documentation in https://docs.oracle.com/javase/tutorial/deployment/jar/appman.html with friends.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With