dockerfile deploy
Failed to deploy 'base Dockerfile: Base/Dockerfile':
java.lang.RuntimeException: com.fasterxml.jackson.databind.JsonMappingException:
Null key for a Map not allowed in JSON (use a converting NullKeySerializer?)
(through reference chain: com.github.dockerjava.core.command.CreateContainerCmdImpl["Volumes"]->java.util.HashMap["null"])<br/>
caused by: com.fasterxml.jackson.databind.JsonMappingException: Null key for a Map not allowed in JSON (
use a converting NullKeySerializer?) (through reference chain:
com.github.dockerjava.core.command.CreateContainerCmdImpl["Volumes"]->java.util.HashMap["null"])
docker file
FROM adoptopenjdk/openjdk15 EXPOSE 8080 VOLUME /tmp ADD target/Base-0.0.1-SNAPSHOT.jar /app.jar #刷新app.jat文件的时间戳属性 RUN bash -c 'touch /app.jar' ENTRYPOINT ["java","-jar","-Xms128m","-Xmx6g","/app.jar"]
查看dockerfile没有问题
再看idea配置
更改bind mounts的时候不小心加了一行空的 去掉这一空行就行