Message boards : Theory Application : integrate Docker-IP in LAN - Win11pro
Message board moderation

To post messages, you must log in.

AuthorMessage
maeax

Send message
Joined: 22 Apr 16
Posts: 731
Credit: 2,312,684
RAC: 4,704
Message 8756 - Posted: 20 Apr 2025, 3:40:56 UTC

Testing to integrate Docker-IP in LAN-Network Win11pro.

ifconfig

sudo route add default gw 10.xxx.yyy.zzz netmask 255.255.254.0
sudo ifconfig eth0 10.xxx.yyy.zzz netmask 255.255.254.0
sudo ifconfig docker0 10.xxx.yyy.zzz netmask 255.255.254.0
sudo ifconfig podman0 10.xxx.yyy.zzz netmask 255.255.254.0

command output:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESbd5909751182 localhost/boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4456990-628:latest /bin/sh -c ./entr... 5 minutes ago Exited (0) 9 seconds ago boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4456990-628_0EOMrunning docker command: logs boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4456990-628_0
command output:
Environment proxy 'http://10.116.178.201:3128' set but can't be connectedCould not download a wpad.dat from lhchomeproxy.{cern.ch|fnal.gov}Could not find a local HTTP proxyCVMFS and Frontier will have to use DIRECT connectionsThis makes the application less efficientIt also puts higher load on the project serversSetting up a local HTTP proxy is highly recommendedAdvice can be found in the project forumUsing custom CVMFS.Probing CVMFS repositories ...Probing /cvmfs/alice.cern.ch... Failed!Probing /cvmfs/cvmfs-config.cern.ch... Failed!Probing /cvmfs/grid.cern.ch... Failed!Probing /cvmfs/sft.cern.ch... Failed!Probing CVMFS repositories faileddf: boinc_shutdown called with exit code 206no file systems processedEOMstderr from container:
Environment proxy 'http://10.116.178.201:3128' set but can't be connectedCould not download a wpad.dat from lhchomeproxy.{cern.ch|fnal.gov}Could not find a local HTTP proxyCVMFS and Frontier will have to use DIRECT connectionsThis makes the application less efficientIt also puts higher load on the project serversSetting up a local HTTP proxy is highly recommendedAdvice can be found in the project forumUsing custom CVMFS.Probing CVMFS repositories ...Probing /cvmfs/alice.cern.ch... Failed!Probing /cvmfs/cvmfs-config.cern.ch... Failed!Probing /cvmfs/grid.cern.ch... Failed!Probing /cvmfs/sft.cern.ch... Failed!Probing CVMFS repositories faileddf: boinc_shutdown called with exit code 206no file systems processedEOMstderr end
running docker command: stop boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4456990-628_0
command output:
boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4456990-628_0EOMrunning docker command: container rm boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4456990-628_0
command output:
boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4456990-628_0EOMrunning docker command: image rm boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4456990-628
command output:
Untagged: localhost/boinc__lhcathomedev.cern.ch_lhcathome-dev__theory_2848-4456990-628:latestEOM2025-04-20 05:10:30 (12036): called boinc_finish(0)

</stderr_txt>
<message>
upload failure: <file_xfer_error>
<file_name>Theory_2848-4456990-628_0_r292382559_result</file_name>
<error_code>-240 (stat() failed)</error_code>
</file_xfer_error>
</message>
]]>[/u]

This is the beginning test, but not the complete success.

Help is welcome.
ID: 8756 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
maeax

Send message
Joined: 22 Apr 16
Posts: 731
Credit: 2,312,684
RAC: 4,704
Message 8762 - Posted: 22 Apr 2025, 9:15:30 UTC - in response to Message 8756.  

No idea if this is all you need to install Docker in Windows:

Windows 11pro -> activate -> Features in System



sudo wsl --install

sudo apt install podman

sudo add-apt-repository universe

CVMFS_HTTP_PROXY="http://10.xxx.yyy.zzz:3128| CVMFS_HTTP_PROXY="http://10.xxx.yyy.zzz:3128" | CVMFS_HTTP_PROXY="http://10.xxx.yyy.zzz:3128|direct"
ID: 8762 · 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 8763 - Posted: 22 Apr 2025, 10:12:59 UTC - in response to Message 8762.  

In reply to maeax's message of 22 Apr 2025:
CVMFS_HTTP_PROXY="http://10.xxx.yyy.zzz:3128| CVMFS_HTTP_PROXY="http://10.xxx.yyy.zzz:3128" | CVMFS_HTTP_PROXY="http://10.xxx.yyy.zzz:3128|direct"

This is wrong!
The correct syntax is described here:
https://cvmfs.readthedocs.io/en/stable/cpt-configure.html#proxy-lists
Beside that it is important NOT to add DIRECT to the first proxy group!
Instead, add it at the end, separated by a ';'.

If you have a single local proxy, the preferred solution is to configure it via 'grid-wpad' 1) and set:
CVMFS_HTTP_PROXY="auto;DIRECT"

2nd best is to configure it via the BOINC client.

Last option is to configure it via the environment like this:
CVMFS_HTTP_PROXY="http://p1.site.example.org:3128;DIRECT"



If you have at least 2 local proxies, the preferred solution is to configure them via 'grid-wpad' 1) and set:
CVMFS_HTTP_PROXY="auto;DIRECT".

To configure this via BOINC is not possible.

Last option is to configure them via the environment like this:
CVMFS_HTTP_PROXY="http://p1.site.example.org:3128|http://p2.site.example.org:3128;DIRECT"
CVMFS_PROXY_SHARD=yes

That way CVMFS_HTTP_PROXY defines load balancing per client 2) between p1 and p2 as well as failover.
DIRECT is only used if both proxies do not respond.
'CVMFS_PROXY_SHARD=yes' enables load balancing between p1 and p2 on request level (requires a recent CVMFS client).
The recent Theory apps automatically enable CVMFS_PROXY_SHARD.


The latter allows load balancing between p1 and p2



1) requires a local service 'grid-wpad' that delivers a valid wpad.dat via http://grid-wpad/wpad.dat
2) here: per task/container if the CVMFS instance on the host is used
ID: 8763 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
maeax

Send message
Joined: 22 Apr 16
Posts: 731
Credit: 2,312,684
RAC: 4,704
Message 8764 - Posted: 22 Apr 2025, 11:12:40 UTC

Got a proxy from the local environment
Will use it for CVMFS and Frontier


Using custom CVMFS.
Probing CVMFS repositories ...
Probing /cvmfs/alice.cern.ch... OK
Probing /cvmfs/cvmfs-config.cern.ch... OK
Probing /cvmfs/grid.cern.ch... OK
Probing /cvmfs/sft.cern.ch... OK
Excerpt from "cvmfs_config stat":VERSION HOST PROXY2.12.7.0 http://s1cern-cvmfs.openhtc.io http://10.116.178.201:3128
Environment HTTP proxy: http://10.116.178.201:3128
job: htmld=/var/www/lighttpd
job: unpack exitcode=0
job: run exitcode=1
job: diskusage=6824
job: logsize=16 k
job: times=0m0.000s 0m0.006s0m20.728s 0m14.791s
job: cpuusage=36
Job Finished===>

[runRivet] Tue Apr 22 09:36:39 UTC 2025 [boinc pp jets 7000 25,-,300 - pythia8 8.313 tune-A14-CTEQL1 100000 649]

Filesystem Used Use% Mounted oncvmfs2 159K 1% /cvmfs/cvmfs-config.cern.chcvmfs2 19M 1% /cvmfs/alice.cern.chcvmfs2 32M 1% /cvmfs/grid.cern.chcvmfs2 1.9G 47% /cvmfs/sft.cern.chtotal 1.9G 12%
-boinc_shutdown called with exit code 0
EOMstderr from container:
ID: 8764 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Theory Application : integrate Docker-IP in LAN - Win11pro


©2025 CERN