Docker

one line start some docker container

sudo docker run -d --name localmysql -v $PWD:data_dir -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 mysql
sudo docker run -d --name localredis -p 6379:6379 redis --requirepass "123456"

some docker command

docker stop localmysql
docker rm localmysql

docker-compose

rebuild image for docker-compose

docker-compose up --build