简体   繁体   English

启动用于MSSQL的Docker映像而不创建容器

[英]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 故障排除

  • run without -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.

相关问题 Docker:在 docker 镜像之外启动一个 mssql 脚本 - Docker: launch a mssql script outside of the docker image 在 mssql docker 容器内获取 root 访问权限 - Get root access inside mssql docker container 为MSSQL Server docker映像启用XA事务 - Enable XA transactions for MSSQL Server docker image 将数据库部署到 Docker 容器 microsoft/mssql-server-linux - Deploy the database to Docker Container microsoft/mssql-server-linux MSSQL - Microsoft SQL 服务器 2017 / 2019 在 Docker 容器性能缓慢 - MSSQL - Microsoft SQL Server 2017 / 2019 on Docker Container Slow Performance 使用与 1433 不同的端口连接到 MSSQL Docker 容器? - Connecting to the MSSQL Docker container using a different port than 1433? 无法从堆叠式 docker 容器连接到远程 MSSQL 数据库 - Cannot connect to remote MSSQL database from stacked docker container 如何连接在 Docker 容器内运行的 MSSQL 服务器? - How to connect on MSSQL server running inside a Docker container? mssql-server-windows-express Docker 容器立即停止 - mssql-server-windows-express Docker container stops immediately 使用SQL Server(Linux)和我自己的数据库创建docker映像:在容器中找不到数据库 - Creating a docker image with SQL Server (Linux) and a database of my own: database not found in container
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM