Home > Database > Mysql Tutorial > How Docker creates MySQL

How Docker creates MySQL

WBOY
Release: 2023-06-02 21:15:39
forward
980 people have browsed it

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
Copy after login

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!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template