我一直在尝试在我的 dockerfile 中安装 Microsoft ODBC Driver 17 for SQL Server for alpine。我在我的 docker 文件中运行以下命令
RUN wget https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7 8d28ddafb39b/msodbcsql17_17.5.1.1-1_amd64.apk
RUN wget https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/mssql tools_17.5.1.2-1_amd64.apk
RUN wget https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.5.1.1-1_amd64.sig
RUN wget https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/mssql-tools_17.5.1.2-1_amd64.sig
RUN apk add gnupg
RUN wget https://packages.microsoft.com/keys/microsoft.asc | gpg --import -
RUN gpg --verify msodbcsql_17.5.1.1-1_amd64.sig msodbcsql_17.5.1.1-1_amd64.apk
RUN apk add --allow-untrusted msodbcsql_17.5.1.1-1_amd64.apk
RUN apk add --allow-untrusted mssql-tools_17.5.1.1-1_amd64.apk
但是,我每次都会收到以下消息。我可以在运行交互模式下看到文件在那里。
无法打开“msodbcsql_17.5.1.1-1_amd64.sig”:没有这样的文件或目录