wsl安装docker遇到的问题
说在前面,这其实是一题乌龙,我忘记下载docker镜像了。
启动镜像的时候遇到报错
docker compose up -d thyp-sdk
bighead@LAPTOP-9TOJ22VC:~/workspace/t-hyp-docker$ docker compose up -d thyp-sdk WARN[0000] /home/bighead/workspace/t-hyp-docker/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion [+] Running 1/1 ! thyp-sdk Warning Get "https://registry-1.docker.io/v2/": context deadline exceeded 31.2s Compose can now delegate builds to bake for better performance. To do so, set COMPOSE_BAKE=true. [+] Building 60.6s (2/2) FINISHED docker:default => [thyp-sdk internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2.87kB 0.0s => ERROR [thyp-sdk internal] load metadata for docker.io/library/ubuntu:focal 60.6s ------ > [thyp-sdk internal] load metadata for docker.io/library/ubuntu:focal: ------ failed to solve: ubuntu:focal: failed to resolve source metadata for docker.io/library/ubuntu:focal: unexpected status from HEAD request to https://sy2nxcfq.mirror.aliyuncs.com/v2/library/ubuntu/manifests/focal?ns=docker.io: 403 Forbidden
原因是我没有下载prebuilt docker image,然后按照t-hyp-docker下README.md中 Method2的方法load 镜像
docker load -i thyp-docker-focal-<version>.tar.gz
之后再去 docker-compose up -d
》
bighead@LAPTOP-9TOJ22VC:~/workspace/t-hyp-docker$ docker compose up -d thyp-sdk
WARN[0000] /home/bighead/workspace/t-hyp-docker/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 2/2
 ✔ Network t-hyp-docker_developer     Created                                                                      0.0s
 ✔ Container t-hyp-docker-thyp-sdk-1  Started                                                                      0.8s
                    
                
                
            
        
浙公网安备 33010602011771号