Message boards : Theory Application : Win11pro - 7.37 (docker)
Message board moderation

To post messages, you must log in.

Previous · 1 · 2

AuthorMessage
maeax

Send message
Joined: 22 Apr 16
Posts: 733
Credit: 2,335,674
RAC: 4,124
Message 8579 - Posted: 20 Mar 2025, 15:51:21 UTC
Last modified: 20 Mar 2025, 15:57:41 UTC

PS C:\WINDOWS\system32> wsl.exe -d Ubuntu
maeax@THREAD3995:/mnt/c/WINDOWS/system32$ cd slots/99
-bash: cd: slots/99: No such file or directory
maeax@THREAD3995:/mnt/c/WINDOWS/system32$

-----
maeax@THREAD3995:/mnt/c/WINDOWS/system32$ podman build -t test .
Error: no Containerfile or Dockerfile specified or found in context directory, /mnt/c/WINDOWS/system32: no such file or directory
maeax@THREAD3995:/mnt/c/WINDOWS/system32$
ID: 8579 · 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: 1134
Credit: 339,231
RAC: 0
Message 8580 - Posted: 20 Mar 2025, 16:19:39 UTC - in response to Message 8579.  

cd /mnt/c/ProgramData/BOINC/slots/99
ID: 8580 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
boboviz

Send message
Joined: 24 Oct 19
Posts: 214
Credit: 603,188
RAC: 567
Message 8582 - Posted: 20 Mar 2025, 16:27:05 UTC - in response to Message 8579.  


maeax@THREAD3995:/mnt/c/WINDOWS/system32$ podman build -t test .
Error: no Containerfile or Dockerfile specified or found in context directory, /mnt/c/WINDOWS/system32: no such file or directory
maeax@THREAD3995:/mnt/c/WINDOWS/system32$


Same here!
ID: 8582 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
maeax

Send message
Joined: 22 Apr 16
Posts: 733
Credit: 2,335,674
RAC: 4,124
Message 8583 - Posted: 20 Mar 2025, 16:34:13 UTC - in response to Message 8580.  
Last modified: 20 Mar 2025, 16:39:15 UTC

In reply to Laurence CERN's message of 20 Mar 2025:
cd /mnt/c/ProgramData/BOINC/slots/99


PS C:\WINDOWS\system32> wsl.exe -d Ubuntu
maeax@THREAD3995:/mnt/c/WINDOWS/system32$ cd /mnt/c/ProgramData/BOINC/slots/99
maeax@THREAD3995:/mnt/c/ProgramData/BOINC/slots/99$

---------------------
PS C:\WINDOWS\system32> wsl.exe -d Ubuntu
maeax@THREAD3995:/mnt/c/WINDOWS/system32$ cd /mnt/c/ProgramData/BOINC/slots/99
maeax@THREAD3995:/mnt/c/ProgramData/BOINC/slots/99$ podman build -t test .
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
Error: no Containerfile or Dockerfile specified or found in context directory, /mnt/c/ProgramData/BOINC/slots/99: no such file or directory
maeax@THREAD3995:/mnt/c/ProgramData/BOINC/slots/99$
ID: 8583 · 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: 1134
Credit: 339,231
RAC: 0
Message 8585 - Posted: 20 Mar 2025, 19:28:34 UTC - in response to Message 8583.  
Last modified: 20 Mar 2025, 19:28:55 UTC

Here are the commands to run .

C:\Users\boinc>wsl
mkdir /mnt/c/ProgramData/BOINC/slots/99
cd /mnt/c/ProgramData/BOINC/
cp projects/lhcathomedev.cern.ch_lhcathome-dev/* slots/99
cd slots/99
ln -s Dockerfile_20_03_2025 Dockerfile
ln -s entrypoint_20_03_2025.sh entrypoint.sh
podman build -t test .
podman run --cap-add=SYS_ADMIN --device /dev/fuse -v ./:/boinc_slot_dir test
ID: 8585 · 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: 0
Message 8588 - Posted: 20 Mar 2025, 22:23:27 UTC

I'm missing the following points:

1. Advice to create subuids and subgids.
See:
https://github.com/containers/podman/blob/main/docs/tutorials/rootless_tutorial.md#etcsubuid-and-etcsubgid-configuration

2. Advice to install and configure CVMFS and autofs on the host
This saves lots of network traffic and disk space since a single CVMFS instance can provide data for many containers.

3. The test 'run' command should look like this:
podman run -it --rm -v /cvmfs:/cvmfs:shared -v ./:/boinc_slot_dir test


'--rm' ensures a container is removed automatically after it's finished.

--cap-add=SYS_ADMIN --device /dev/fuse should both be avoided.
They are not required if CVMFS is correctly set up.
ID: 8588 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Previous · 1 · 2

Message boards : Theory Application : Win11pro - 7.37 (docker)


©2025 CERN