在过去的几个月里,我一直在使用Docker和一个镜像,然后,我开始得到以下错误
[+] Building 3.3s (6/6) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> resolve image config for docker.io/docker/dockerfile:experimental 1.9s
=> CACHED docker-image://docker.io/docker/dockerfile:experimental@sha256:600e5c62eedff338b3f7a0850beb7c05866e0ef27b2d2e8c02aa468e78496ff5 0.0s
=> [internal] load metadata for docker.io/library/maven:3.6.2-jdk-8 0.9s
=> ERROR [internal] load metadata for docker.io/library/java:8 1.0s
------
> [internal] load metadata for docker.io/library/java:8:
------
failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = docker.io/library/java:8: not found
我在映像所在的容器上运行了以下命令
docker exec container_name java -version
我回来了
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2~bpo8+1-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
我不是docker方面的Maven,我不知道如何列出目录www.example.com中的内容docker.io/library/
Dockerfile调用java 8.
我所知道的就是它在工作,现在它停止工作了
谢谢你的任何帮助,和/或指针。
1条答案
按热度按时间7lrncoxx1#
在
Dockerfile
这个对我很有用