📜  在 docker 中运行 sql server - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:29.256000             🧑  作者: Mango

代码示例1
# Run container
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=yourStrong(!)Password' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2017-latest

# Connect to container
docker exec -it [id] /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P ""