久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <legend id='VbxY2'><style id='VbxY2'><dir id='VbxY2'><q id='VbxY2'></q></dir></style></legend>
    <i id='VbxY2'><tr id='VbxY2'><dt id='VbxY2'><q id='VbxY2'><span id='VbxY2'><b id='VbxY2'><form id='VbxY2'><ins id='VbxY2'></ins><ul id='VbxY2'></ul><sub id='VbxY2'></sub></form><legend id='VbxY2'></legend><bdo id='VbxY2'><pre id='VbxY2'><center id='VbxY2'></center></pre></bdo></b><th id='VbxY2'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='VbxY2'><tfoot id='VbxY2'></tfoot><dl id='VbxY2'><fieldset id='VbxY2'></fieldset></dl></div>

      <tfoot id='VbxY2'></tfoot>
        <bdo id='VbxY2'></bdo><ul id='VbxY2'></ul>

      <small id='VbxY2'></small><noframes id='VbxY2'>

      Docker 連接 SQL Server 容器非零代碼:1

      Docker connect SQL Server container non-zero code: 1(Docker 連接 SQL Server 容器非零代碼:1)
      <tfoot id='t6ttc'></tfoot>

            <i id='t6ttc'><tr id='t6ttc'><dt id='t6ttc'><q id='t6ttc'><span id='t6ttc'><b id='t6ttc'><form id='t6ttc'><ins id='t6ttc'></ins><ul id='t6ttc'></ul><sub id='t6ttc'></sub></form><legend id='t6ttc'></legend><bdo id='t6ttc'><pre id='t6ttc'><center id='t6ttc'></center></pre></bdo></b><th id='t6ttc'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='t6ttc'><tfoot id='t6ttc'></tfoot><dl id='t6ttc'><fieldset id='t6ttc'></fieldset></dl></div>
              <tbody id='t6ttc'></tbody>
            <legend id='t6ttc'><style id='t6ttc'><dir id='t6ttc'><q id='t6ttc'></q></dir></style></legend>
              <bdo id='t6ttc'></bdo><ul id='t6ttc'></ul>

                <small id='t6ttc'></small><noframes id='t6ttc'>

                本文介紹了Docker 連接 SQL Server 容器非零代碼:1的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我正在嘗試從 docker-compose.yml 創(chuàng)建一個 SQL Server 容器,但是當(dāng)我運行它時,它直接停止并出現(xiàn)一些錯誤.注意:它在帶有 docker Preview 的 Apple M1 芯片上運行

                I'm trying to create a SQL Server container from a docker-compose.yml but when I run it, it directly stops with some errors. Note: it's running on an Apple M1 chip with docker Preview

                docker-compose.yml:

                docker-compose.yml:

                version: "3.7"
                services:
                  sql-server-db:
                    container_name: sql-server-db
                    image: mcr.microsoft.com/mssql/server:2019-latest
                    ports: 
                      - "1433:1433"
                    environment: 
                      SA_PASSWORD: "ApplePassDockerConnect"
                      ACCEPT_EULA: "Y"
                

                我遇到的錯誤:

                sql-server-db |/opt/mssql/bin/sqlservr:0x4000000000000 以下保留地址空間中地址 0x40092b8000 的無效映射.可能的原因:

                sql-server-db | /opt/mssql/bin/sqlservr: Invalid mapping of address 0x40092b8000 in reserved address space below 0x400000000000. Possible causes:

                sql-server-db |1) 進程(本身,或通過包裝器)啟動自己的運行環(huán)境,通過 syscall setrlimit(2) 將堆棧大小限制設(shè)置為無限制;

                sql-server-db | 1) the process (itself, or via a wrapper) starts-up its own running environment sets the stack size limit to unlimited via syscall setrlimit(2);

                sql-server-db |2) 進程(本身,或通過包裝器)調(diào)整自己的執(zhí)行域,并通過系統(tǒng)調(diào)用個性(2)標(biāo)記系統(tǒng)其遺留個性;

                sql-server-db | 2) the process (itself, or via a wrapper) adjusts its own execution domain and flag the system its legacy personality via syscall personality(2);

                sql-server-db |3) sysadmin 通過調(diào)整 sysctl 旋鈕 vm.legacy_va_layout 故意將系統(tǒng)設(shè)置為在舊版 VA 布局模式下運行.

                sql-server-db | 3) sysadmin deliberately sets the system to run on legacy VA layout mode by adjusting a sysctl knob vm.legacy_va_layout.

                sql-server-db |

                sql-server-db |

                sql-server-db 退出,代碼為 1

                sql-server-db exited with code 1

                推薦答案

                你不能真正在 M1 上使用 mcr.microsoft.com/mssql/server:2019-latest 容器,因為 MSSQL DB 不支持ARM架構(gòu).我發(fā)現(xiàn)的唯一方法是使用支持 ARM 并且可以在 M1 上運行的 Azure SQL 容器.

                You cant really use mcr.microsoft.com/mssql/server:2019-latest containers on M1 because MSSQL DB does not support ARM architecture. The only way I found - is to use Azure SQL container that supports ARM and can be run on M1.

                這里是我的 docker-compose.yml 配置示例:

                Here my docker-compose.yml config example:

                version: "3.9"
                
                services:
                    # Database instance
                    mssql:
                      image: mcr.microsoft.com/azure-sql-edge:latest
                      volumes:
                        - events_mssql:/var/opt/mssql
                      ports:
                        - 1433:1433
                      environment:
                        - ACCEPT_EULA=1
                        - MSSQL_SA_PASSWORD=Passw@rd
                
                volumes:
                    events_mssql:
                

                您將能夠使用用戶名:sa、密碼:Passw@rd 和數(shù)據(jù)庫:master 連接到此數(shù)據(jù)庫.如果您想要其他數(shù)據(jù)庫名稱 - 您可以創(chuàng)建一個新的 使用 SQL:CREATE DATABASE TestDB

                You will be able to connect to this DB using username: sa, password: Passw@rd and database: master. If you want other db name - you can create a new one using SQL: CREATE DATABASE TestDB

                該數(shù)據(jù)庫具有與 MSSQL DB 相同的 API,因此它適用于 pyodbc(M1 不支持)和 pymssql 庫.

                This database has the same API as MSSQL DB, so it works with pyodbc (not supported on M1) and pymssql libraries.

                如果您在 M1 機器上本地使用它 - 考慮使用 pymssql 庫連接到 Azure SQL DB.這是我對 pyodbc 問題的回答 https://stackoverflow.com/a/66919686/11515610

                If you are using it locally on your M1 machine - consider using pymssql library for connection to Azure SQL DB. Here my answer on issue with pyodbc https://stackoverflow.com/a/66919686/11515610

                這篇關(guān)于Docker 連接 SQL Server 容器非零代碼:1的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                pyspark mysql jdbc load An error occurred while calling o23.load No suitable driver(pyspark mysql jdbc load 調(diào)用 o23.load 時發(fā)生錯誤 沒有合適的驅(qū)動程序)
                Break down a table to pivot in columns (SQL,PYSPARK)(分解表以按列進行透視(SQL、PYSPARK))
                Spark giving Null Pointer Exception while performing jdbc save(Spark在執(zhí)行jdbc保存時給出空指針異常)
                execute query on sqlserver using spark sql(使用 spark sql 在 sqlserver 上執(zhí)行查詢)
                pyspark mysql jdbc load An error occurred while calling o23.load No suitable driver(pyspark mysql jdbc load 調(diào)用 o23.load 時發(fā)生錯誤 沒有合適的驅(qū)動程序)
                How can I compare the one line in one CSV with all lines in another CSV file?(如何將一個 CSV 中的一行與另一個 CSV 文件中的所有行進行比較?)
                  <tbody id='N5rXJ'></tbody>
                • <bdo id='N5rXJ'></bdo><ul id='N5rXJ'></ul>
                  <i id='N5rXJ'><tr id='N5rXJ'><dt id='N5rXJ'><q id='N5rXJ'><span id='N5rXJ'><b id='N5rXJ'><form id='N5rXJ'><ins id='N5rXJ'></ins><ul id='N5rXJ'></ul><sub id='N5rXJ'></sub></form><legend id='N5rXJ'></legend><bdo id='N5rXJ'><pre id='N5rXJ'><center id='N5rXJ'></center></pre></bdo></b><th id='N5rXJ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='N5rXJ'><tfoot id='N5rXJ'></tfoot><dl id='N5rXJ'><fieldset id='N5rXJ'></fieldset></dl></div>

                    <tfoot id='N5rXJ'></tfoot><legend id='N5rXJ'><style id='N5rXJ'><dir id='N5rXJ'><q id='N5rXJ'></q></dir></style></legend>

                          <small id='N5rXJ'></small><noframes id='N5rXJ'>

                          主站蜘蛛池模板: 欧洲一级黄 | 美女一级毛片 | 九九精品久久久 | 成人在线欧美 | 欧美中文字幕在线 | av中文在线播放 | 99这里只有精品视频 | 国产精品久久一区 | 亚洲欧美国产精品久久 | 亚洲电影第三页 | 韩日一区二区 | 日韩国产中文字幕 | 国产一区二区三区不卡av | 精品色| 亚洲一二三在线观看 | 欧洲妇女成人淫片aaa视频 | 天天综合久久 | 91久久久久久久久久久久久 | 在线中文字幕亚洲 | 亚洲九九 | 国产精品久久久久久久毛片 | 欧美一区二区成人 | 精品中文字幕在线 | 91色视频在线 | 99精品欧美一区二区三区综合在线 | 高清黄色 | 在线观看国产视频 | 国产成人免费视频网站高清观看视频 | 亚洲精品中文字幕在线观看 | 亚洲一区二区久久 | 亚洲视频www | 精品一区二区久久久久久久网站 | av香蕉| 国产精品免费一区二区 | 天堂色| 亚洲美女在线一区 | 久久久久国产一区二区三区 | 欧美不卡一区二区三区 | 日韩在线观看中文字幕 | 久久久精品网站 | 91精品国产色综合久久 |