安装错误两个,分号错误;今天Docker错误三个,已解决;M2 MacOS

M2 MacOS 的 Docker 错误有3个。

1. 安装错误

docker daemon fail to start 今日のdocker error
https://qiita.com/kaizen_nagoya/items/59708d9be110160d06f8

M2のMacにDockerとDocker Composeをインストールする
https://qiita.com/shimanuki-yu/items/5c5aaee333ed86ea07cb

可能没有安装适用于M2Mac的docker软件。

在接下来的页面上可以找到。

在Mac上安装Docker桌面版
https://docs.docker.com/desktop/install/mac-install/

苹果芯片版的Docker桌面版软件已经发布,可在以下链接下载安装:https://desktop.docker.com/mac/main/arm64/Docker.dmg

2. 安装错误二

在前一个Docker仍在运行的情况下,尝试将其复制到应用程序文件夹时发生了错误。

スクリーンショット 2023-09-30 8.14.25.png
$ ps -ax | grep docker
  663 ??         0:00.52 /Library/PrivilegedHelperTools/com.docker.vmnetd
34264 ??         3:52.62 /Applications/Docker.app/Contents/MacOS/com.docker.backend -watchdog
50032 ttys000    0:00.00 grep docker
$ kill 663
-bash: kill: (663) - Operation not permitted
$ kill -9 663
-bash: kill: (663) - Operation not permitted
$ kill 34264
$ 

重新启动

$ ps -ax | grep docker
  622 ??         0:00.16 /Library/PrivilegedHelperTools/com.docker.vmnetd
  862 ??         0:00.17 /Applications/Docker.app/Contents/MacOS/com.docker.supervisor -watchdog
  863 ??         0:00.17 /Applications/Docker.app/Contents/MacOS/com.docker.backend -watchdog
 1213 ??         0:00.05 docker serve --address unix:///Users/ogawakiyoshi/.docker/run/docker-cli-api.sock
 1218 ??         0:00.07 com.docker.cli --context default context inspect default
 1387 ttys000    0:00.00 grep docker

重新启动后,不知何故应用程序没有关闭。我手动将应用程序关闭了。

3. 错误

$ docker run -v ?users/ogawakiyoshi/Downloads/autosar;/tmp/docker -it kaizenjapan/autosar /bin/bash
"docker run" requires at least 1 argument.
See 'docker run --help'.

Usage:  docker run [OPTIONS] IMAGE [COMMAND] [ARG...]

Create and run a new container from an image
-bash: /tmp/docker: No such file or directory
MacBook-Air:~ ogawakiyoshi$ docker run -v /Users/ogawakiyoshi/Downloads/autosar;/tmp/docker -it kaizenjapan/autosar /bin/bash
"docker run" requires at least 1 argument.
See 'docker run --help'.

Usage:  docker run [OPTIONS] IMAGE [COMMAND] [ARG...]

Create and run a new container from an image
-bash: /tmp/docker: No such file or directory

不是分号,是冒号。

$ docker run -v /Users/ogawakiyoshi/Downloads/autosar:/tmp/docker -it kaizenjapan/autosar /bin/bash
Unable to find image 'kaizenjapan/autosar:latest' locally
latest: Pulling from kaizenjapan/autosar
5b7339215d1d: Pull complete 
14ca88e9f672: Pull complete 
a31c3b1caad4: Pull complete 
b054a26005b7: Pull complete 
637203abd9ed: Pull complete 
c9d7543d434a: Pull complete 
86128d9220bb: Pull complete 
918db5bca014: Pull complete 
c4af5860241a: Pull complete 
Digest: sha256:3dd59857ea9ff3ecd386bcdb589adba1fd3c4ecc43560cfa0ba31362e86e01e7
Status: Downloaded newer image for kaizenjapan/autosar:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

文書记录

版本 0.01 初稿 20230929
版本 0.02;错误追记 20230930

非常感谢您一直阅读到最后。

赞,?请关注一下。

非常感谢您一直阅读到最后一句话。

请点击喜欢的图标 ? 并关注我,享受快乐的生活。

bannerAds