install mysql docker image

鲁弘厚
2023-12-01

1.search official docker image from https://hub.docker.com/explore/
2.pull from official mysql docker image

docker pull mysql
  1. rum command as this
docker run --name some-mysql -p 9091:3306 -v /home/cypress/Data/DockerData/MysqlDatas/instance1:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:latest --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
  1. show docker status,the command like this
    docker ps
    5.stop docker
    docker stop docker_instance_id
 类似资料:

相关阅读

相关文章

相关问答