最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Docker not able to detect mySQL image - Stack Overflow

programmeradmin1浏览0评论

I have three containers I am trying to set up for my Tomcat Server/Spring Boot project. Two of them are currently up and running using mysql 8.0.33 and mysql 5.7

I'm currently trying to compose the third container with mysql 8 using the following yml file

  db:
    image: mysql:8
    platform: linux/x86_64/v8
    environment:
      - MYSQL_ROOT_PASSWORD=*****
    volumes:
      - mysql_es:/var/lib/mysql
    ports:
      - "3308:3306"

volumes:
  mysql_es:

However, when I try to compose it I get the following error

[+] Running 1/1
 ✔ db Pulled                                                                                                                                                6.7s
[+] Running 0/0
 ⠋ Container blitz-db-1  Creating                                                                                                                           0.0s
Error response from daemon: No such image: mysql:8

Yet when I go into my Docker Desktop I can see that the mysql 8 image was generated. I've tried deleting it, and the other mysql images and re running the compose but it's still not able to get the container up and running. Any ideas why?

My machine: Mac M4 chip

I have three containers I am trying to set up for my Tomcat Server/Spring Boot project. Two of them are currently up and running using mysql 8.0.33 and mysql 5.7

I'm currently trying to compose the third container with mysql 8 using the following yml file

  db:
    image: mysql:8
    platform: linux/x86_64/v8
    environment:
      - MYSQL_ROOT_PASSWORD=*****
    volumes:
      - mysql_es:/var/lib/mysql
    ports:
      - "3308:3306"

volumes:
  mysql_es:

However, when I try to compose it I get the following error

[+] Running 1/1
 ✔ db Pulled                                                                                                                                                6.7s
[+] Running 0/0
 ⠋ Container blitz-db-1  Creating                                                                                                                           0.0s
Error response from daemon: No such image: mysql:8

Yet when I go into my Docker Desktop I can see that the mysql 8 image was generated. I've tried deleting it, and the other mysql images and re running the compose but it's still not able to get the container up and running. Any ideas why?

My machine: Mac M4 chip

Share Improve this question edited Mar 3 at 17:08 Shadow 34.3k10 gold badges65 silver badges75 bronze badges asked Mar 3 at 17:03 UltraStars19UltraStars19 112 bronze badges 1
  • a) Try using exact image name b) Run docker system prune -a – Justinas Commented Mar 3 at 17:13
Add a comment  | 

1 Answer 1

Reset to default 0

There is no platform build for that version you requested, amd64 and arm64/v8 only available for mysql:8 image.

发布评论

评论列表(0)

  1. 暂无评论