[英]Launch Docker Image for MSSQL not creating a container
I am trying to setup MSSQL for my macOS and can't get the docker image to load and create a container. 我正在尝试为macOS设置MSSQL,但无法获取Docker映像来加载和创建容器。 I have downloaded Docker and have it up and running 我已经下载了Docker并开始运行
Downloaded: 下载:
docker pull microsoft/mssql-server-linux
Then run via Terminal: 然后通过终端运行:
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=<my password here> -e
'MSSQL_PID=Express' -p 1433:1433 -d microsoft/mssql-server-
linux:latest
I then run 然后我跑
docker ps
and receive, with no data 并接收,没有数据
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
I am not sure where the issue occurring 我不确定问题出在哪里
Troubleshooting 故障排除
-d
command to launch the instance in attached mode. 在不使用-d
命令的情况下运行,以附加模式启动实例。 docker ps -a
give you the stopped containers docker ps -a
给您停止的容器 docker logs $stoppedContainerId
give you the logs of a container docker logs $stoppedContainerId
给你一个容器的日志 How to resolve 怎么解决
Well I tried by myself and I checked the logs > 好吧,我自己尝试了一下,然后查看了日志>
2018-06-05 21:54:28.38 spid21s ERROR: Unable to set system administrator password: Password validation failed. 2018-06-05 21:54:28.38 spid21s错误:无法设置系统管理员密码:密码验证失败。 The password does not meet SQL Server password policy requirements because it is too short. 密码太短,不符合SQL Server密码策略要求。 The password must be at least 8 characters.. 密码必须至少为8个字符。
I assume you have the same problem because it's working with a strong password. 我认为您遇到了同样的问题,因为它使用的是强密码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.