简体   繁体   English

无法在 M1 Macbook 中使用 Docker 运行 Azure SQL Edge

[英]Cannot run Azure SQL Edge using Docker in M1 Macbook

I use this command to run:我使用此命令运行:

docker run -e 'ACCEPT_EULA=1' -e 'MSSQL_SA_PASSWORD=password' -p 1433:1433 --name sqledge -d mcr.microsoft.com/azure-sql-edge

The logs is below:日志如下:

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.

I specified port 1433 but it runs on 1431?我指定了端口 1433 但它在 1431 上运行?

Does your log provide more information ?您的日志是否提供更多信息?

I tried your command and couldn't run the container also.我试过你的命令,也无法运行容器。

It said:它说:

ERROR: Unable to set system administrator password: Password validation failed.错误:无法设置系统管理员密码:密码验证失败。 The password does not meet SQL Server password policy requirements because it is not complex enough.该密码不符合 SQL Server 密码策略要求,因为它不够复杂。 The password must be at least 8 characters long and contain characters from three of the following four sets: Uppercase letters, Lowercase letters, Base 10 digits, and Symbols..密码长度必须至少为 8 个字符,并且包含以下四组中的三组字符:大写字母、小写字母、Base 10 数字和符号。

After changing de password to something more complex, it run successfully将 de 密码更改为更复杂的密码后,它运行成功

Try something like this :尝试这样的事情:

docker run -e 'ACCEPT_EULA=1' -e 'MSSQL_SA_PASSWORD=74euW1Njse3T0-a' -p 1433:1433 --name sqledge -d mcr.microsoft.com/azure-sql-edge

Docker container run successfully Docker容器运行成功

Docker desktop error Docker桌面错误

I still got the port connection problem on 1431 but it doesn't affect the container itself我仍然在 1431 上遇到端口连接问题,但它不影响容器本身

I use docker desktop on Windows 10我在 Windows 10 上使用 docker 桌面

I also saw a couple of links which may be helpful : https://docs.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://docs.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/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM