yeszao / dnmp

Docker LNMP (Nginx, PHP7/PHP5, MySQL, Redis)
https://www.awaimai.com/2120.html
MIT License
3.96k stars 1.41k forks source link

docker-compose up 报错 #605

Open nanfeng opened 1 month ago

nanfeng commented 1 month ago

mac intel 能否给个可用 的镜像 报错

➜  dnmp git:(master) docker-compose up
WARN[0000] /Users/qianxin/work/dnmp/docker-compose.yml: `version` is obsolete
[+] Building 38.4s (6/6) FINISHED                                                                                                                                                      docker:desktop-linux
 => [php56 internal] load build definition from Dockerfile                                                                                                                                             0.0s
 => => transferring dockerfile: 1.19kB                                                                                                                                                                 0.0s
 => [nginx internal] load build definition from Dockerfile                                                                                                                                             0.0s
 => => transferring dockerfile: 507B                                                                                                                                                                   0.0s
 => ERROR [php56 internal] load metadata for docker.io/library/php:5.6.40-fpm-alpine                                                                                                                  38.4s
 => ERROR [nginx internal] load metadata for docker.io/library/nginx:1.19.1-alpine                                                                                                                    38.3s
 => [nginx auth] library/nginx:pull token for registry-1.docker.io                                                                                                                                     0.0s
 => [php56 auth] library/php:pull token for registry-1.docker.io                                                                                                                                       0.0s
------
 > [php56 internal] load metadata for docker.io/library/php:5.6.40-fpm-alpine:
------
------
 > [nginx internal] load metadata for docker.io/library/nginx:1.19.1-alpine:
------
failed to solve: nginx:1.19.1-alpine: failed to resolve source metadata for docker.io/library/nginx:1.19.1-alpine: unexpected status from HEAD request to https://9kt9f6mz.mirror.aliyuncs.com/v2/library/nginx/manifests/1.19.1-alpine?ns=docker.io: 403 Forbidden
rymuscle commented 1 month ago

mac apple m1 报错

➜  dnmp git:(master) docker-compose up
WARN[0000] the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 1/2
 ⠸ mysql5 Pulling                                                                                                                                          13.3s
 ✘ mysql Error    context canceled                                                                                                                         13.3s
no matching manifest for linux/arm64/v8 in the manifest list entries
GadouLee commented 1 month ago

mac apple m1 报错

➜  dnmp git:(master) docker-compose up
WARN[0000] the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 1/2
 ⠸ mysql5 Pulling                                                                                                                                          13.3s
 ✘ mysql Error    context canceled                                                                                                                         13.3s
no matching manifest for linux/arm64/v8 in the manifest list entries

mysql: platform: linux/amd64

jingmian commented 1 month ago

因为官方mysql 5.7版本不支持arm平台,可以先暂时使用bitnami/mysql:5.7.43