1.拉取镜像
docker pull mcr.microsoft.com/mssql/server:2019-latest
2.执行docker run命令:
docker run --name sqlserver-wangmj --hostname sqlserver-master \ -p 1434:1433 \ -e 'ACCEPT_EULA=Y' \ -e 'SA_PASSWORD=sdfasdfasdfsdf?' \ -e "MSSQL_AGENT_ENABLED=True" \ -e "MSSQL_PID=Developer" \ -d mcr.microsoft.com/mssql/server:2019-latest
以下是参数详解:
参考文档:https://zhuanlan.zhihu.com/p/639385990
标签:安装,sqlserver,2019,sqlserver2019,docker,com,mcr From: https://www.cnblogs.com/niuge/p/17765009.html