music_recommendation icon indicating copy to clipboard operation
music_recommendation copied to clipboard

docker-compose up -d项目构建时报错

Open xzagit opened this issue 1 year ago • 2 comments

$ docker-compose up -d [+] Building 4.9s (10/19)
=> [music_recommendation_webserver internal] load .dockerignore 0.1s => => transferring context: 2B 0.0s => [music_recommendation_webserver internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 1.56kB 0.0s => [music_recommendation_recommend_servce internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 539B 0.0s => [music_recommendation_recommend_servce internal] load .dockerignore 0.1s => => transferring context: 2B 0.0s => [music_recommendation_recommend_servce internal] load metadata for docker.io/library/python:3.6.8 1.6s => [music_recommendation_webserver internal] load metadata for docker.io/library/php:5.6-apache 1.7s => CANCELED [music_recommendation_recommend_servce 1/6] FROM docker.io/library/python:3.6.8@sha256:f20a9bfddd87c238c3d2316b417922 3.1s => => resolve docker.io/library/python:3.6.8@sha256:f20a9bfddd87c238c3d2316b4179222f219090cbb25d5b6975070d4dd4b75004 0.1s => => sha256:e2b625c433e2e3c9a72eb92483c7e6ebe32163e320258f6a60badc44d9eb2806 2.22kB / 2.22kB 0.0s => => sha256:48c06762acf0bb8fa6a7f10686f3430cc3d149cf798556c138a82ded6c61e438 7.38kB / 7.38kB 0.0s => => sha256:6f2f362378c5a6fd915d96d11dda1e0223ccf213bf121ace56ae0f6616ea1dc8 15.73MB / 45.34MB 3.1s => => sha256:7596bb83081b6c8410df557d538a0ae45922cbf81e469c6f4cfa835247cb24ab 4.34MB / 4.34MB 3.0s => => sha256:f20a9bfddd87c238c3d2316b4179222f219090cbb25d5b6975070d4dd4b75004 2.38kB / 2.38kB 0.0s => => sha256:494c27a8a6b820f9167ec7e368b3a9bb47d7029f4dc8c97c67091f3757a5bc4e 0B / 10.79MB 3.1s => [music_recommendation_recommend_servce internal] load build context 0.0s => => transferring context: 3.23kB 0.0s => CACHED [music_recommendation_webserver 1/6] FROM docker.io/library/php:5.6-apache@sha256:0a40fd273961b99d8afe69a61a68c73c04bc0 0.0s => ERROR [music_recommendation_webserver 2/6] RUN sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.l 3.1s

[music_recommendation_webserver 2/6] RUN sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list && apt-get clean && apt-get -y update: #15 0.407 Ign:1 http://mirrors.aliyun.com/debian stretch InRelease #15 0.495 Ign:2 http://mirrors.aliyun.com/debian stretch-updates InRelease #15 0.584 Ign:3 http://mirrors.aliyun.com/debian stretch Release #15 0.644 Ign:4 http://security.debian.org/debian-security stretch/updates InRelease #15 0.674 Ign:5 http://mirrors.aliyun.com/debian stretch-updates Release #15 0.736 Ign:6 http://security.debian.org/debian-security stretch/updates Release #15 0.764 Ign:7 http://mirrors.aliyun.com/debian stretch/main all Packages #15 0.829 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages #15 0.853 Ign:9 http://mirrors.aliyun.com/debian stretch/main amd64 Packages #15 0.924 Ign:10 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #15 0.941 Ign:11 http://mirrors.aliyun.com/debian stretch-updates/main amd64 Packages #15 1.019 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages #15 1.028 Ign:12 http://mirrors.aliyun.com/debian stretch-updates/main all Packages #15 1.116 Ign:10 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #15 1.118 Ign:7 http://mirrors.aliyun.com/debian stretch/main all Packages #15 1.206 Ign:9 http://mirrors.aliyun.com/debian stretch/main amd64 Packages #15 1.213 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages #15 1.291 Ign:11 http://mirrors.aliyun.com/debian stretch-updates/main amd64 Packages #15 1.313 Ign:10 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #15 1.377 Ign:12 http://mirrors.aliyun.com/debian stretch-updates/main all Packages #15 1.415 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages #15 1.468 Ign:7 http://mirrors.aliyun.com/debian stretch/main all Packages #15 1.513 Ign:10 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #15 1.607 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages #15 1.647 Ign:9 http://mirrors.aliyun.com/debian stretch/main amd64 Packages #15 1.701 Ign:10 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #15 1.746 Ign:11 http://mirrors.aliyun.com/debian stretch-updates/main amd64 Packages #15 1.796 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages #15 1.841 Ign:12 http://mirrors.aliyun.com/debian stretch-updates/main all Packages #15 1.890 Err:10 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #15 1.890 404 Not Found [IP: 151.101.130.132 80] #15 1.929 Ign:7 http://mirrors.aliyun.com/debian stretch/main all Packages #15 2.013 Ign:9 http://mirrors.aliyun.com/debian stretch/main amd64 Packages #15 2.104 Ign:11 http://mirrors.aliyun.com/debian stretch-updates/main amd64 Packages #15 2.199 Ign:12 http://mirrors.aliyun.com/debian stretch-updates/main all Packages #15 2.288 Ign:7 http://mirrors.aliyun.com/debian stretch/main all Packages #15 2.376 Ign:9 http://mirrors.aliyun.com/debian stretch/main amd64 Packages #15 2.465 Ign:11 http://mirrors.aliyun.com/debian stretch-updates/main amd64 Packages #15 2.559 Ign:12 http://mirrors.aliyun.com/debian stretch-updates/main all Packages #15 2.662 Ign:7 http://mirrors.aliyun.com/debian stretch/main all Packages #15 2.756 Err:9 http://mirrors.aliyun.com/debian stretch/main amd64 Packages #15 2.756 404 Not Found [IP: 124.225.13.238 80] #15 2.841 Err:11 http://mirrors.aliyun.com/debian stretch-updates/main amd64 Packages #15 2.841 404 Not Found [IP: 124.225.13.238 80] #15 2.928 Ign:12 http://mirrors.aliyun.com/debian stretch-updates/main all Packages #15 2.939 Reading package lists... #15 2.945 W: The repository 'http://mirrors.aliyun.com/debian stretch Release' does not have a Release file. #15 2.945 W: The repository 'http://mirrors.aliyun.com/debian stretch-updates Release' does not have a Release file. #15 2.945 W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file. #15 2.945 E: Failed to fetch http://mirrors.aliyun.com/debian/dists/stretch/main/binary-amd64/Packages 404 Not Found [IP: 124.225.13.238 80] #15 2.945 E: Failed to fetch http://mirrors.aliyun.com/debian/dists/stretch-updates/main/binary-amd64/Packages 404 Not Found [IP: 124.225.13.238 80] #15 2.945 E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.130.132 80] #15 2.945 E: Some index files failed to download. They have been ignored, or old ones used instead.


failed to solve: rpc error: code = Unknown desc = process "/bin/sh -c sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list && apt-get clean && apt-get -y update" did not complete successfully: exit code: 100

xzagit avatar Apr 27 '23 06:04 xzagit

有没有大佬可以帮忙部署啊,有偿,尝试了docker和另外的手动都不行QAQ

Yaoyoay avatar Mar 28 '24 02:03 Yaoyoay

$ docker-compose up -d

[+] Building 4.9s (10/19) => [music_recommendation_webserver internal] load .dockerignore 0.1s => => transferring context: 2B 0.0s => [music_recommendation_webserver internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 1.56kB 0.0s => [music_recommendation_recommend_servce internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 539B 0.0s => [music_recommendation_recommend_servce internal] load .dockerignore 0.1s => => transferring context: 2B 0.0s => [music_recommendation_recommend_servce internal] load metadata for docker.io/library/python:3.6.8 1.6s => [music_recommendation_webserver internal] load metadata for docker.io/library/php:5.6-apache 1.7s => CANCELED [music_recommendation_recommend_servce 1/6] FROM docker.io/library/python:3.6.8@sha256:f20a9bfddd87c238c3d2316b417922 3.1s => => resolve docker.io/library/python:3.6.8@sha256:f20a9bfddd87c238c3d2316b4179222f219090cbb25d5b6975070d4dd4b75004 0.1s => => sha256:e2b625c433e2e3c9a72eb92483c7e6ebe32163e320258f6a60badc44d9eb2806 2.22kB / 2.22kB 0.0s => => sha256:48c06762acf0bb8fa6a7f10686f3430cc3d149cf798556c138a82ded6c61e438 7.38kB / 7.38kB 0.0s => => sha256:6f2f362378c5a6fd915d96d11dda1e0223ccf213bf121ace56ae0f6616ea1dc8 15.73MB / 45.34MB 3.1s => => sha256:7596bb83081b6c8410df557d538a0ae45922cbf81e469c6f4cfa835247cb24ab 4.34MB / 4.34MB 3.0s => => sha256:f20a9bfddd87c238c3d2316b4179222f219090cbb25d5b6975070d4dd4b75004 2.38kB / 2.38kB 0.0s => => sha256:494c27a8a6b820f9167ec7e368b3a9bb47d7029f4dc8c97c67091f3757a5bc4e 0B / 10.79MB 3.1s => [music_recommendation_recommend_servce internal] load build context 0.0s => => transferring context: 3.23kB 0.0s => CACHED [music_recommendation_webserver 1/6] FROM docker.io/library/php:5.6-apache@sha256:0a40fd273961b99d8afe69a61a68c73c04bc0 0.0s => ERROR [music_recommendation_webserver 2/6] RUN sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.l 3.1s

[music_recommendation_webserver 2/6] RUN sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list && apt-get clean && apt-get -y update: #15 0.407 Ign:1 http://mirrors.aliyun.com/debian stretch InRelease #15 0.495 Ign:2 http://mirrors.aliyun.com/debian stretch-updates InRelease #15 0.584 Ign:3 http://mirrors.aliyun.com/debian stretch Release #15 0.644 Ign:4 http://security.debian.org/debian-security stretch/updates InRelease #15 0.674 Ign:5 http://mirrors.aliyun.com/debian stretch-updates Release #15 0.736 Ign:6 http://security.debian.org/debian-security stretch/updates Release #15 0.764 Ign:7 http://mirrors.aliyun.com/debian stretch/main all Packages #15 0.829 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages #15 0.853 Ign:9 http://mirrors.aliyun.com/debian stretch/main amd64 Packages #15 0.924 Ign:10 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #15 0.941 Ign:11 http://mirrors.aliyun.com/debian stretch-updates/main amd64 Packages #15 1.019 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages #15 1.028 Ign:12 http://mirrors.aliyun.com/debian stretch-updates/main all Packages #15 1.116 Ign:10 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #15 1.118 Ign:7 http://mirrors.aliyun.com/debian stretch/main all Packages #15 1.206 Ign:9 http://mirrors.aliyun.com/debian stretch/main amd64 Packages #15 1.213 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages #15 1.291 Ign:11 http://mirrors.aliyun.com/debian stretch-updates/main amd64 Packages #15 1.313 Ign:10 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #15 1.377 Ign:12 http://mirrors.aliyun.com/debian stretch-updates/main all Packages #15 1.415 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages #15 1.468 Ign:7 http://mirrors.aliyun.com/debian stretch/main all Packages #15 1.513 Ign:10 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #15 1.607 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages #15 1.647 Ign:9 http://mirrors.aliyun.com/debian stretch/main amd64 Packages #15 1.701 Ign:10 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #15 1.746 Ign:11 http://mirrors.aliyun.com/debian stretch-updates/main amd64 Packages #15 1.796 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages #15 1.841 Ign:12 http://mirrors.aliyun.com/debian stretch-updates/main all Packages #15 1.890 Err:10 http://security.debian.org/debian-security stretch/updates/main amd64 Packages #15 1.890 404 Not Found [IP: 151.101.130.132 80] #15 1.929 Ign:7 http://mirrors.aliyun.com/debian stretch/main all Packages #15 2.013 Ign:9 http://mirrors.aliyun.com/debian stretch/main amd64 Packages #15 2.104 Ign:11 http://mirrors.aliyun.com/debian stretch-updates/main amd64 Packages #15 2.199 Ign:12 http://mirrors.aliyun.com/debian stretch-updates/main all Packages #15 2.288 Ign:7 http://mirrors.aliyun.com/debian stretch/main all Packages #15 2.376 Ign:9 http://mirrors.aliyun.com/debian stretch/main amd64 Packages #15 2.465 Ign:11 http://mirrors.aliyun.com/debian stretch-updates/main amd64 Packages #15 2.559 Ign:12 http://mirrors.aliyun.com/debian stretch-updates/main all Packages #15 2.662 Ign:7 http://mirrors.aliyun.com/debian stretch/main all Packages #15 2.756 Err:9 http://mirrors.aliyun.com/debian stretch/main amd64 Packages #15 2.756 404 Not Found [IP: 124.225.13.238 80] #15 2.841 Err:11 http://mirrors.aliyun.com/debian stretch-updates/main amd64 Packages #15 2.841 404 Not Found [IP: 124.225.13.238 80] #15 2.928 Ign:12 http://mirrors.aliyun.com/debian stretch-updates/main all Packages #15 2.939 Reading package lists... #15 2.945 W: The repository 'http://mirrors.aliyun.com/debian stretch Release' does not have a Release file. #15 2.945 W: The repository 'http://mirrors.aliyun.com/debian stretch-updates Release' does not have a Release file. #15 2.945 W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file. #15 2.945 E: Failed to fetch http://mirrors.aliyun.com/debian/dists/stretch/main/binary-amd64/Packages 404 Not Found [IP: 124.225.13.238 80] #15 2.945 E: Failed to fetch http://mirrors.aliyun.com/debian/dists/stretch-updates/main/binary-amd64/Packages 404 Not Found [IP: 124.225.13.238 80] #15 2.945 E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.130.132 80] #15 2.945 E: Some index files failed to download. They have been ignored, or old ones used instead.

failed to solve: rpc error: code = Unknown desc = process "/bin/sh -c sed -i "s@[http://deb.debian.org@http://mirrors.aliyun.com@g](http://deb.debian.org@http://mirrors.aliyun.com@g%5C)" /etc/apt/sources.list && apt-get clean && apt-get -y update" did not complete successfully: exit code: 100

大佬 请问您这个问题解决了嘛 我也遇到了

Yaoyoay avatar Mar 28 '24 04:03 Yaoyoay