docker commit -m="描述信息" -a="作者" 容器ID 目标镜像名:[版本]
docker run -p 3308:3306 --name ycmysql8 -e MYSQL_ROOT_PASSWORD=a -d mysql:8 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
-----------------------------------------------------------
docker run -p 3310:3306 --name testmysql -e MYSQL_ROOT_PASSWORD=a -d mysql:8 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
docker network create -d bridge ycnetwork
docker network connect ycnetwork ycmysql8
docker network connect ycnetwork testmysql
docker exec -it testmysql /bin/bash
mysql -h 172.20.0.3 -uroot -pa