Message boards : Theory Application : Docker on Mac
Message board moderation

To post messages, you must log in.

AuthorMessage
ProfileLaurence CERN
Project administrator
Project developer
Project tester
Avatar

Send message
Joined: 12 Sep 14
Posts: 1129
Credit: 339,231
RAC: 0
Message 8658 - Posted: 31 Mar 2025, 6:36:16 UTC

The docker app is now available on Mac.

https://github.com/BOINC/boinc/wiki/Installing-Docker#mac
ID: 8658 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
[AF>Le_Pommier] Jerome_C2005

Send message
Joined: 17 Mar 15
Posts: 65
Credit: 650,367
RAC: 315
Message 8781 - Posted: 27 Apr 2025, 17:30:42 UTC - in response to Message 8658.  
Last modified: 27 Apr 2025, 17:32:33 UTC

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>
<![CDATA[
<message>
process exited with code 1 (0x1, -255)</message>
<stderr_txt>
docker_wrapper config:
workdir: /boinc_slot_dir
use GPU: no
create args: --cap-add=SYS_ADMIN --device /dev/fuse -v /cvmfs:/cvmfs:shared
verbose: 1
Using unknown
running docker command: ps --all --filter "name=boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4507864-714_0"
sh: unknown: command not found
command output:
creating container boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4507864-714_0
running docker command: images
sh: unknown: command not found
command output:
building image
running docker command: build . -t boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4507864-714 -f Dockerfile
sh: unknown: command not found
command output:
running docker command: create --name boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4507864-714_0 -v /Library/Application Support/BOINC Data/slots/7:/boinc_slot_dir --cap-add=SYS_ADMIN --device /dev/fuse -v /cvmfs:/cvmfs:shared boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4507864-714
sh: unknown: command not found
command output:
starting container
running docker command: start boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4507864-714_0
sh: unknown: command not found
command output:
running docker command: ps --all -f "name=boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4507864-714_0"
sh: unknown: command not found
command output:
running docker command: logs boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4507864-714_0
sh: unknown: command not found
command output:
stderr from container:
stderr end
running docker command: stop boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4507864-714_0
sh: unknown: command not found
command output:
running docker command: container rm boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4507864-714_0
sh: unknown: command not found
command output:
running docker command: image rm boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4507864-714
sh: unknown: command not found
command output:
2025-04-27 19:23:47 (89661): called boinc_finish(1)

</stderr_txt>
]]>

I seems it cannot execute any docker command... ?

$ docker --version
Docker version 28.0.4, build b8034c0
ID: 8781 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
ProfileLaurence CERN
Project administrator
Project developer
Project tester
Avatar

Send message
Joined: 12 Sep 14
Posts: 1129
Credit: 339,231
RAC: 0
Message 8782 - Posted: 28 Apr 2025, 9:51:08 UTC - in response to Message 8781.  

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.
ID: 8782 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
[AF>Le_Pommier] Jerome_C2005

Send message
Joined: 17 Mar 15
Posts: 65
Credit: 650,367
RAC: 315
Message 8783 - Posted: 28 Apr 2025, 15:42:28 UTC - in response to Message 8782.  

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 ?
ID: 8783 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Project tester
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 28 Jul 16
Posts: 519
Credit: 400,710
RAC: 1
Message 8784 - Posted: 28 Apr 2025, 19:10:54 UTC - in response to Message 8783.  

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
ID: 8784 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
[AF>Le_Pommier] Jerome_C2005

Send message
Joined: 17 Mar 15
Posts: 65
Credit: 650,367
RAC: 315
Message 8785 - Posted: 29 Apr 2025, 8:13:46 UTC - in response to Message 8784.  

OK thanks ! I'll try this tonight once back home.
ID: 8785 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
[AF>Le_Pommier] Jerome_C2005

Send message
Joined: 17 Mar 15
Posts: 65
Credit: 650,367
RAC: 315
Message 8786 - Posted: 29 Apr 2025, 19:28:05 UTC - in response to Message 8785.  
Last modified: 29 Apr 2025, 19:34:23 UTC

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
Some projects require Docker. We recommend that you install it. Instructions are here .
Mardi 29 avril 2025 à 01:01:55 · suivant...

But docker *is* actually installed... ?
ID: 8786 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Project tester
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 28 Jul 16
Posts: 519
Credit: 400,710
RAC: 1
Message 8787 - Posted: 29 Apr 2025, 20:10:33 UTC - in response to Message 8786.  

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'.
ID: 8787 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
[AF>Le_Pommier] Jerome_C2005

Send message
Joined: 17 Mar 15
Posts: 65
Credit: 650,367
RAC: 315
Message 8789 - Posted: 30 Apr 2025, 23:06:34 UTC - in response to Message 8787.  
Last modified: 30 Apr 2025, 23:07:15 UTC

 $ 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.
ID: 8789 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
[AF>Le_Pommier] Jerome_C2005

Send message
Joined: 17 Mar 15
Posts: 65
Credit: 650,367
RAC: 315
Message 8790 - Posted: 3 May 2025, 9:54:58 UTC

Any other idea on this ?
ID: 8790 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
[AF>Le_Pommier] Jerome_C2005

Send message
Joined: 17 Mar 15
Posts: 65
Credit: 650,367
RAC: 315
Message 8791 - Posted: 4 May 2025, 17:15:02 UTC

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...
ID: 8791 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Crystal Pellet
Volunteer tester

Send message
Joined: 13 Feb 15
Posts: 1223
Credit: 942,598
RAC: 346
Message 8792 - Posted: 4 May 2025, 17:43:49 UTC - in response to Message 8791.  

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.
ID: 8792 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
[AF>Le_Pommier] Jerome_C2005

Send message
Joined: 17 Mar 15
Posts: 65
Credit: 650,367
RAC: 315
Message 8795 - Posted: 6 May 2025, 14:44:01 UTC - in response to Message 8792.  
Last modified: 6 May 2025, 14:44:56 UTC

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...
ID: 8795 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
[AF>Le_Pommier] Jerome_C2005

Send message
Joined: 17 Mar 15
Posts: 65
Credit: 650,367
RAC: 315
Message 8801 - Posted: 11 May 2025, 10:15:51 UTC

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.
ID: 8801 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Theory Application : Docker on Mac


©2025 CERN