When running docker container, spring boot app not running locally instead jshell shows up

  docker, java, spring, spring-boot, spring-mvc

When running my docker container, it always defaults to jshell instead of actually running locally. I created the image for my container using the command below. How do I prevent the base image container arguments from setting it to jshell?

Command

mvn jib:dockerBuild -Djib.to.image=fullstackapp:v1

pom.xml

        <plugin>
            <groupId>com.google.cloud.tools</groupId>
            <artifactId>jib-maven-plugin</artifactId>
            <version>2.5.2</version>
            <configuration>
                <from>
                    <image>openjdk:15</image>
                </from>
                <container>
                    <ports>
                        <port>8080</port>
                    </ports>
                    <format>OCI</format>
                </container>
            </configuration>
        </plugin>

Set to jshell

enter image description here

Source: Docker Questions

LEAVE A COMMENT