LoginSignup
1
0

インストールエラー2つ、セミコロンエラー;今日のDocker error3つ(解決); M2 MacOS

Last updated at Posted at 2023-09-29

Docker error 3つ on M2 MacOS

1. installl error

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ソフトインストールしてなかったかも。

次のページにあった。

Install Docker Desktop on Mac
https://docs.docker.com/desktop/install/mac-install/

Docker Desktop for Mac with Apple silicon
https://desktop.docker.com/mac/main/arm64/Docker.dmg

2. install error 2

前のドッカーが起動したままで、アプリフォルダにコピーしようとしたらエラーになった。

スクリーンショット 2023-09-30 8.14.25.png

bash
$ 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
$ 

再起動

bash
$ 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. ; error

bash
$ 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

セミコロンじゃなかった。コロンだった。

bash
$ 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

文書履歴(document history)

ver. 0.01 初稿 20230929
ver. 0.02 ;error 追記 20230930

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.------

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0