我正在遵循'kubernetes-for-java-developers'Arun gupta的教程来学习docker / kubernetes。
https://github.com/arun-gupta/kubernetes-for-java-developers
我在此特定步骤中失败
docker image build --file Dockerfile.jre -t arungupta/greeting:jre-slim .
当我使用docker桌面,Windows容器时,进入messege下面。
F:\Work\Workspace\IntellejIdea\kubernetes-for-java-developers\app>docker
image build --file Dockerfile.jre -t arungupta/greeting:jre-slim .
Sending build context to Docker daemon 219.5MB
Step 1/7 : FROM debian:9-slim
operating system is not supported
当我使用docker桌面,linux容器时,在以下命令下运行时会陷入混乱状态
docker container run -d -p 8090:8080 arungupta/greeting:jre-slim
F:\Work\Workspace\IntellejIdea\kubernetes-for-java-developers\app>docker container run -d -p 8090:8080 arungupta/greeting:jre-slim
db92a3cc25635d1d2a7f02cd7c94dd11af6b17ea5b258dcaf740de93a05221f7
docker: Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \"./myjre/bin/java\": stat ./myjre/bin/java: no such file
or directory": unknown.
我的操作系统是Windows 10专业版。
Dockerfile.jre
FROM debian:9-slim
COPY target/app.war /root
COPY myjre /root/myjre
EXPOSE 8080 5005
WORKDIR /root
ENV _JAVA_OPTIONS '-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005'
CMD ["./myjre/bin/java", "-jar", "app.war"]
由于我是这种docker / kubernetes技术的新手,所以不确定从哪里开始调试或出现问题。
帮助表示赞赏!