Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【备忘清单】 请求: <Name>docker volume示例 #853

Open
wuwenhu opened this issue Nov 27, 2024 · 0 comments
Open

【备忘清单】 请求: <Name>docker volume示例 #853

wuwenhu opened this issue Nov 27, 2024 · 0 comments
Assignees
Labels

Comments

@wuwenhu
Copy link

wuwenhu commented Nov 27, 2024

说明项目

#docker volume示例
#创建volume
docker volume create volume_path_name
#windows 10默认目录(docker-desktop version 2), 查看版本命令:wsl -l -v
\wsl.localhost\docker-desktop\mnt\docker-desktop-disk\data\docker\volumes
#创建容器并挂载volume,基于镜像mysql:8.0.40-oraclelinux9
docker run -d --name your_container_name -e MYSQL_ROOT_PASSWORD=your_password -p 3306:3306 -v volume_path_name:/var/lib/mysql mysql:8.0.40-oraclelinux9

提供官网

No response

参考资料 URL

https://blog.csdn.net/xie__jin__cheng/article/details/140313654
gemini.google.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants