|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
报错如下:
[root@VM-4-10-centos test]# docker build -t test .
[+] Building 0.1s (6/8)
=> [internal] load build definition from Dockerfile
=> => transferring dockerfile: 287B
=> [internal] load .dockerignore
=> => transferring context: 2B
=> [internal] load metadata for docker.io/library/java:8
=> [1/4] FROM docker.io/library/java:8
=> ERROR [internal] load build context
=> => transferring context:
=> CACHED [2/4] RUN ln -sf /usr/share/zoneinfo/{TZ} /etc/localtime && echo "{TZ}" > /etc/timezone
------
> [internal] load build context:
------
ERROR: failed to solve: Internal: header key "followpaths" contains value with non-printable ASCII characters
Dockerfile如下:
FROM java:8
EXPOSE 8080
VOLUME /tmp
ENV TZ=Asia/Shanghai
RUN ln -sf /usr/share/zoneinfo/{TZ} /etc/localtime && echo "{TZ}" > /etc/timezone
ADD test-0.0.1-SNAPSHOT.jar  /app.jar
RUN bash -c 'touch /app.jar'
ENTRYPOINT ["java","-jar","/app.jar"]
当我想生成镜像时出现" header key "followpaths" contains value with non-printable ASCII characters"这个问题,请问是什么造成的,应该如何解决啊 |
|