Many people encounter problems when installing Docker, especially if they are not familiar with the macOS operating system. In this topic, I will cover some of the most common problems and solutions.
Some users said that after running the 3rd code (the last command, -run) they encountered errors like the one shown below:
Traceback (most recent call last) :
File "launch_script_mac_n.py",
line 240, in ‹module>
File "launch_script_mac_n.py",
line 148,
in main
File "launch_script_mac_n.py",
line 32,
in check_docker
File
"subprocess.py", line 424, in check_output
File "subprocess.py", line 505, in run File "subprocess py", line 951, in __init_ File "subprocess.py", line 1821, in
FileNotFoundError: [Errno 2] No such file or directory: 'docker'
[xxx] Failed to execute script 'launch_script_mac_n'
due to unhandled exception!
To resolve this error, move Docker to the Applications folder that opens after completing the installation process and start Docker from the Applications folder.
Some users have encountered the "incompatible CPU detected" error. To fix this error, make sure you download and install the correct version of Docker. You can access the docker version for M chips from the link below.
zsh: bad CPU type in executable
There were some users who missed an error message. This error occurs when creating Worker and running the last command (the long one) and users don't see any output in the terminal. To resolve this error, if you don't see any output in the terminal after running the command, check if this error exists or not. Applications built for Intel
Apple Silicon/Apple Chip
(M series processors), you need to install Rosetta. To install Rosetta, run the following command in the terminal:
softwareupdate --install-rosetta --agree-to-license