一、开启服务
vi docker-compose.yml
version: '3'
services:
mysql1:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=123456
ports:
- 28002:3306
mysql2:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=123456
ports:
- 28003:3306
docker-compose up -d
二、停止/删除服务
docker-compose stop
docker-compose rm