简体   繁体   中英

mysql docker container not created after following instructions

I'm trying to create a mysql container using the directions here to no avail. When running docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=admin -d mysql:tag it says Unable to find image 'mysql:tag' locally .

Replace the "tag" in mysql:tag with any of these:

  • 8.0.21, 8.0, 8, latest
  • 5.7.31, 5.7, 5
  • 5.6.49, 5.6

like:

docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=admin -d mysql:latest

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM