小编Col*_*air的帖子

Docker:找到镜像但与指定平台不匹配(尝试在 Apple M1 上构建 amd64)

免责声明:我是 Docker 新手,知道自己的无知。

\n

我正在尝试使用 Apple M1 Pro 在计算机上构建具有 amd64 架构的 Docker 容器。我已platform: linux/amd64在Dockerfiledocker-compose.ymlFROM --platform=linux/amd64Dockerfile 中指定(同时和单独)。

\n

如果我将它包含在该容器的 Dockerfile 中,它构建得很好,但uname -a在该 shell 中显示aarch64架构(不是x86_64)。

\n

如果我将其包含在 中docker-compose.yml,则会出现以下错误:

\n
Error response from daemon: image with reference api:latest was found but does not match the specified platform: wanted linux/amd64, actual: linux/arm64/v8\n
Run Code Online (Sandbox Code Playgroud)\n

api我正在尝试构建的容器之一在哪里docker-compose

\n

文件结构:

\n
.\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 api\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 Dockerfile-API\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 entrypoint.sh\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 ...\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 db\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 …
Run Code Online (Sandbox Code Playgroud)

docker docker-compose apple-m1

13
推荐指数
1
解决办法
2万
查看次数

latexindent:安装 File::HomeDir、Mac::SystemDirectory 自 macOS 11 Big Sur 后出现问题

在开始之前,我应该注意,我在 macOS 10.15 Catalina 上从未遇到过这个问题,不幸的是,这个类似线程中的回复并没有解决问题。

我正在尝试latexindent全新安装的 macOS 11 Big Sur,但遇到了以下问题File:HomeDir:运行会latexindent返回完整的错误列表,以Can't locate File/HomeDir.pm in @INC. 我尝试使用cpan安装该模块,但最终得到以下结果:

Reading '/Users/myname/.cpan/Metadata'
  Database was generated on Thu, 24 Dec 2020 05:41:03 GMT
Running install for module 'File::HomeDir'
Checksum for /Users/myname/.cpan/sources/authors/id/R/RE/REHSACK/File-HomeDir-1.006.tar.gz ok
Scanning cache /Users/myname/.cpan/build for sizes
............................................................................DONE
'YAML' not installed, will not store persistent state
Configuring R/RE/REHSACK/File-HomeDir-1.006.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Mac::SystemDirectory 0.04 not found. …
Run Code Online (Sandbox Code Playgroud)

macos perl latex cpan macos-big-sur

4
推荐指数
1
解决办法
632
查看次数

标签 统计

apple-m1 ×1

cpan ×1

docker ×1

docker-compose ×1

latex ×1

macos ×1

macos-big-sur ×1

perl ×1