Docker构建过程中失败
B-D3T8MD6R-1911:docker-app zhuxuemin$ docker build . -t docker-java-app [+] Building 0.1s (3/3) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 208B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => ERROR [internal] load metadata for docker.io/williamyeh/java8:latest 0.1s ------ > [internal] load metadata for docker.io/williamyeh/java8:latest: ------ failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code [manifests latest]: 403 Forbidden
解决办法,调整配置文件buildkit: false
{
“builder”: {
“gc”: {
“defaultKeepStorage”: “20GB”,
“enabled”: true
}
},
“experimental”: false,
“features”: {
“buildkit”: false
},
“registry-mirrors”: [
“https://docker.mirrors.ustc.edu.cn/”
]
}