Home >Database >Mysql Tutorial >How Docker creates MySQL

How Docker creates MySQL

WBOY
WBOYforward
2023-06-02 21:15:39954browse

1. Download mysql image

Command: docker pull mysql

How Docker creates MySQL

2 .Create container

Command sample:

sudo docker run -p 3306:3306 --name mysql -v $pwd/conf:/etc/mysql/conf.d -v $pwd/logs:/logs -v $pwd/data:/var/lib/mysql -e mysql_root_password=root -d mysql

Command description:

How Docker creates MySQL

How Docker creates MySQL

The above is the detailed content of How Docker creates MySQL. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete