spring-boot-docker-plugin

Passing JAVA_OPTS to spring boot application through docker-compose

喜你入骨 提交于 2020-12-30 02:22:12
问题 I am creating a docker image using below configuration. Once image is ready i want to pass JAVA_OPTS to my docker container, so it can be passed to my spring boot application. Whenever i try to bring up the container i am getting "runtime create failed: container_linux.go:348: starting container process caused "exec: \"java $JAVA_OPTS\": executable file not found in $PATH": unknown" error. Am i missing something ? Any help is really appreciated Dockerfile FROM openjdk:8-jdk-alpine LABEL

Passing JAVA_OPTS to spring boot application through docker-compose

こ雲淡風輕ζ 提交于 2020-12-30 02:18:43
问题 I am creating a docker image using below configuration. Once image is ready i want to pass JAVA_OPTS to my docker container, so it can be passed to my spring boot application. Whenever i try to bring up the container i am getting "runtime create failed: container_linux.go:348: starting container process caused "exec: \"java $JAVA_OPTS\": executable file not found in $PATH": unknown" error. Am i missing something ? Any help is really appreciated Dockerfile FROM openjdk:8-jdk-alpine LABEL