본문 바로가기

기타

[Mac] no matching manifest for linux/arm64/v8 in the manifest list entries 에러

728x90

no matching manifest for linux/arm64/v8 in the manifest list entries 에러

docker-compose.yml 파일

version: '3.9'
services:

  ###MySQL Service
  db:
    image: mysql:5.7.32
    container_name: db
    restart: unless-stopped
    environment:
      MYSQL_DATABASE: laravel_db
      MYSQL_USER: laravel
      MYSQL_PASSWORD: password
      MYSQL_ROOT_PASSWORD: P@ssword
      SERVICE_NAME: php
      SERVICE_TAGS: dev
    volumes:
      - ./mysql/data:/var/lib/mysql:rw
    expose:
      - 3306
    ports:
      - 3306:3306
    networks:
      - app-network
docker-compose --build
[+] Running 0/1
⠇ db Pulling 3.7s
no matching manifest for linux/arm64/v8 in the manifest list entries

M1(silicon) 버전에 MySQL 컨테이너 실행 시 위와 같이 에러가 발생합니다.

docker-compose.yml 파일 편집

platform: linux/x86_64 설정 추가

version: '3.9'
services:

  ###MySQL Service
  db:
    platform: linux/x86_64
    image: mysql:5.7.32
    container_name: db
    restart: unless-stopped
    environment:
      MYSQL_DATABASE: laravel_db
      MYSQL_USER: laravel
      MYSQL_PASSWORD: password
      MYSQL_ROOT_PASSWORD: P@ssword
      SERVICE_NAME: php
      SERVICE_TAGS: dev
    volumes:
      - ./mysql/data:/var/lib/mysql:rw
    expose:
      - 3306
    ports:
      - 3306:3306
    networks:
      - app-network
docker-compose --build
[+] Running 12/12
⠿ db Pulled
⠿ a076a628af6f Pull complete
⠿ f6c208f3f991 Pull complete
⠿ 88a9455a9165 Pull complete
⠿ fadfb9734ed2 Pull complete
[+] Building 11.4s (20/21)

 

728x90