Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M3 Pro 架构执行 standalone-mysql-8.yaml 报错 linux/arm64/v8 #414

Open
caosuyang opened this issue Jul 7, 2024 · 1 comment
Open

Comments

@caosuyang
Copy link

➜ example git:(master) ✗ docker-compose -f standalone-mysql-8.yaml up
[+] Running 1/2
⠋ nacos Pulling 5.1s
! mysql Warning 5.1s
no matching manifest for linux/arm64/v8 in the manifest list entries

@caosuyang
Copy link
Author

经过我的尝试,因为 m3 pro 是 arm 64 架构,可以通过指定 平台的版本来解决这个问题

指定 platform: linux/x86_64,如下所示:

version: "3.8"
services:
  nacos:
    image: nacos/nacos-server:${NACOS_VERSION}
    container_name: nacos-standalone-mysql
    env_file:
      - ../env/nacos-standlone-mysql.env
    volumes:
      - ./standalone-logs/:/home/nacos/logs
    ports:
      - "8848:8848"
      - "9848:9848"
    depends_on:
      mysql:
        condition: service_healthy
    restart: always
    platform: linux/x86_64
  mysql:
    container_name: mysql
    build:
      context: .
      dockerfile: ./image/mysql/8/Dockerfile
    image: example/mysql:8.0.30
    env_file:
      - ../env/mysql.env
    volumes:
      - ./mysql:/var/lib/mysql
    ports:
      - "3306:3306"
    healthcheck:
      test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
      interval: 5s
      timeout: 10s
      retries: 10
    platform: linux/x86_64

最后执行 docker-compose -f standalone-mysql-8.yaml up,拉取配置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant