我使用这个命令运行:
docker run -e 'ACCEPT_EULA=1' -e 'MSSQL_SA_PASSWORD=password' -p 1433:1433 --name sqledge -d mcr.microsoft.com/azure-sql-edge日志如下:
Azure SQL Edge will run as non-root by default.
This container is running as user mssql.
To learn more visit https://go.microsoft.com/fwlink/?linkid=2140520.
2022/07/21 18:47:55 [launchpadd] INFO: Extensibility Log Header: <timestamp> <process> <sandboxId> <sessionId> <message>
2022/07/21 18:47:55 [launchpadd] WARNING: Failed to load /var/opt/mssql/mssql.conf ini file with error open /var/opt/mssql/mssql.conf: no such file or directory
2022/07/21 18:47:55 [launchpadd] INFO: DataDirectories = /bin:/etc:/lib:/lib32:/lib64:/sbin:/usr/bin:/usr/include:/usr/lib:/usr/lib32:/usr/lib64:/usr/libexec/gcc:/usr/sbin:/usr/share:/var/lib:/opt/microsoft:/opt/mssql-extensibility:/opt/mssql/mlservices:/opt/mssql/lib/zulu-jre-11:/opt/mssql-tools
2022/07/21 18:47:55 Drop permitted effective capabilities.
2022/07/21 18:47:55 [launchpadd] INFO: Polybase remote hadoop bridge disabled
2022/07/21 18:47:55 [launchpadd] INFO: Launchpadd is connecting to mssql on localhost:1431
2022/07/21 18:47:55 [launchpadd] WARNING: Failed to connect to SQL because: dial tcp 127.0.0.1:1431: connect: connection refused, will reattempt connection.
2022/07/21 18:47:56 [launchpadd] WARNING: Failed to connect to SQL because: dial tcp 127.0.0.1:1431: connect: connection refused, will reattempt connection.
2022/07/21 18:47:57 [launchpadd] WARNING: Failed to connect to SQL because: dial tcp 127.0.0.1:1431: connect: connection refused, will reattempt connection.
The SQL Server End-User License Agreement (EULA) must be accepted before SQL
Server can start. The license terms for this product can be downloaded from
https://go.microsoft.com/fwlink/?linkid=2139274.
You can accept the EULA by specifying the --accept-eula command line option,
setting the ACCEPT_EULA environment variable, or using the mssql-conf tool.我指定了端口1433,但它运行在1431?
发布于 2022-07-21 19:46:20
您的日志是否提供更多信息?
我试过你的命令,也无法运行容器。
它说:
错误:无法设置系统管理员密码:密码验证失败。密码不符合Server密码策略要求,因为它不够复杂。密码必须至少有8个字符长,并包含以下四组中的三个字符:大写字母、小写字母、基本10位数字和符号。
将de密码更改为更复杂的内容后,它将成功运行。
试着做这样的事情:
docker run -e 'ACCEPT_EULA=1' -e 'MSSQL_SA_PASSWORD=74euW1Njse3T0-a' -p 1433:1433 --name sqledge -d mcr.microsoft.com/azure-sql-edge我在1431年仍然有端口连接问题,但它不影响容器本身,
我在Windows 10上使用停靠桌面
我还看到了一些可能有用的链接:https://learn.microsoft.com/en-us/azure/azure-sql-edge/disconnected-deployment https://solveforum.com/forums/threads/solved-sql-server-on-m1-base-mac-using-docker.49833/
https://stackoverflow.com/questions/73071499
复制相似问题