docker备份MySQL

104 阅读1分钟

1容器里备份  

docker ps

docker exec -it f39ba1ef9df4 /bin/bash

2容器里curl上传sql文件,得到连接 

3本地或宿主机内下载