docker
清理
docker ps -a | grep "Exited" | awk '{print $1 }'|xargs docker stop
docker ps -a | grep "Exited" | awk '{print $1 }'|xargs docker rm
docker images|grep none|awk '{print $3 }'|xargs docker rmi
docker container rm --force $(docker container ls --quiet)
Docker redis
docker run --restart=always -p 6379:6379 --name my-redis -d redis redis-server --appendonly yes --requirepass ******
Docker AspNet
docker run -d --name dxmvc -p 80:80 -v c:/inetpub/wwwroot/:c:/inetpub/wwwroot microsoft/aspnet:4.7
Docker MSSql
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=SQLOnLinux@123' -p 2433:1433 -d microsoft/mssql-server-linux
docker exec -it f13034243666 /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P SQLOnLinux@123