Message boards : Theory Application : Docker on Mac
Message board moderation
Author | Message |
---|---|
![]() ![]() Send message Joined: 12 Sep 14 Posts: 1129 Credit: 339,231 RAC: 0 ![]() |
The docker app is now available on Mac. https://github.com/BOINC/boinc/wiki/Installing-Docker#mac |
Send message Joined: 17 Mar 15 Posts: 65 Credit: 650,367 RAC: 315 ![]() ![]() |
Hi I installed boinc 8.2.1 (I was still with 8.0) and installed latest docker version on my Intel iMac (latest macOS version), I got 4 theory docker tasks and they fail immediately <core_client_version>8.2.1</core_client_version> I seems it cannot execute any docker command... ? $ docker --version |
![]() ![]() Send message Joined: 12 Sep 14 Posts: 1129 Credit: 339,231 RAC: 0 ![]() |
This is a bug in the client. You can work around this by creating a symbolic link from the non-existing command 'unknown' to the docker command. |
Send message Joined: 17 Mar 15 Posts: 65 Credit: 650,367 RAC: 315 ![]() ![]() |
I'm not sure to understand, for example when it tried to run ("running docker command") ps --all --filter "name=boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4507864-714_0" the result is "sh: unknown: command not found" so there is not a command "unknown", the command is "ps --all --filter "name=boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4507864-714_0"" so what kind of symbolic link do you suggest to create ? |
![]() Send message Joined: 28 Jul 16 Posts: 519 Credit: 400,710 RAC: 1 ![]() ![]() |
Due to a bug in BOINC it tries to execute the command "unknown" instead of "docker" or "podman". Since "unknown" does not exist you get "command not found". To make it work create a symbolic link "unknown" which points to "docker" or "podman" (whatever you have installed), like: ln -s /usr/bin/podman /usr/bin/unknown |
Send message Joined: 17 Mar 15 Posts: 65 Credit: 650,367 RAC: 315 ![]() ![]() |
OK thanks ! I'll try this tonight once back home. |
Send message Joined: 17 Mar 15 Posts: 65 Credit: 650,367 RAC: 315 ![]() ![]() |
Sadly my mac doesn't like that idea $ sudo ln -s /usr/bin/docker /usr/bin/unknown ln: /usr/bin/unknown: Operation not permitted First I tried without the sudo but I had the same message, I thought "this is just permission issue", and I know my sudo is working correctly because I can do a "sudo ls" for instance and it works fine. (I also tried with "podman" instead of "docker" but same message) Also I now that in boinc I have a message like this Notice from BOINC But docker *is* actually installed... ? |
![]() Send message Joined: 28 Jul 16 Posts: 519 Credit: 400,710 RAC: 1 ![]() ![]() |
Check the permissions: ls -dhal /usr/bin dr-xr-xr-x 1 root root 62K 25. Apr 06:05 /usr/bin If 'w' is not set, run 'chmod +w /usr/bin' to allow it. Then create the link and finally remove the 'w' running 'chmod -w /usr/bin'. |
Send message Joined: 17 Mar 15 Posts: 65 Credit: 650,367 RAC: 315 ![]() ![]() |
$ ls -dhal /usr/bin drwxr-xr-x 916 root wheel 29K 4 fév 17:57 /usr/bin I have the w... I don't know what the "wheel" stands for, though. |
Send message Joined: 17 Mar 15 Posts: 65 Credit: 650,367 RAC: 315 ![]() ![]() |
Any other idea on this ? |
Send message Joined: 17 Mar 15 Posts: 65 Credit: 650,367 RAC: 315 ![]() ![]() |
I was able to do it with chatgpt : even as root (via sudo), on modern macOS (Catalina and above), you can't write to /usr/bin at all, because /usr/bin is read-only, protected by System Integrity Protection (SIP) so it told me to use "unprotected folder" like this sudo ln -s /usr/local/bin/docker /usr/local/bin/unknown and it worked $ unknown --version Docker version 28.0.4, build b8034c0 Last model of chatgpt is much better than previous, I try to use IA the less that I can (to keep my brain working) but this time it was quick and accurate, and didn't fail. So now I'm waiting for docker tasks of theory app to see if this works, but now it keeps sending me vbox tasks, I hope it has not blacklisted my machine because all docker tasks were (logically) still failing all the time... |
Send message Joined: 13 Feb 15 Posts: 1223 Credit: 942,598 RAC: 346 ![]() ![]() |
In reply to [AF>Le_Pommier] Jerome_C2005's message of 4 May 2025: So now I'm waiting for docker tasks of theory app to see if this works, but now it keeps sending me vbox tasks, I hope it has not blacklisted my machine because all docker tasks were (logically) still failing all the time...Not blacklisted, but, because of all the errors, your quota is down to 1 task a day. Maybe you can fetch a docker-Theory after a new day has born. That should be successful to increase your quota, else you have to wait another day. |
Send message Joined: 17 Mar 15 Posts: 65 Credit: 650,367 RAC: 315 ![]() ![]() |
It never gave me any docker task anymore, it kept sending vbox tasks continuously, last one was (failing) on May 2nd... Now I'm switching with the team on Pentathlon so it'll have to wait... |
Send message Joined: 17 Mar 15 Posts: 65 Credit: 650,367 RAC: 315 ![]() ![]() |
I got theory tasks again (no more WCG tasks for the Pentathon, I let LHCdev as backup project) and I still get only vbox tasks, it won't send me any docker task at all since end of April with my initial testing with errors. Maybe there are no task setup for macOS, it's not the first time I realize that a project has not "open" delivery of tasks for an OS though officially supported. |
©2025 CERN