docker创建sqlserver容器
时间: 2023-09-28 18:13:55 浏览: 114
要创建一个SQL Server容器,你可以使用以下命令引用\[1\]:
```
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=SqlServer@root12' -p 11433:1433 -d --name=mssqlserver docker.io/liaisonintl/mssql-server-linux
```
这个命令会在容器中启动一个SQL Server实例,并将容器的1433端口映射到主机的11433端口。容器的名称是mssqlserver。你还需要设置ACCEPT_EULA和SA_PASSWORD环境变量,ACCEPT_EULA设置为Y表示接受许可协议,SA_PASSWORD是SQL Server的系统管理员密码。
#### 引用[.reference_title]
- *1* [docker 部署sqlserver](https://blog.csdn.net/bai920708/article/details/127394109)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [使用docker创建mysql容器](https://blog.csdn.net/weixin_61407147/article/details/127321290)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [9. docker 容器执行sql文件](https://blog.csdn.net/qq_37992410/article/details/126870789)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文