katilp / sandbox

My trials
0 stars 0 forks source link

running docker on windows #14

Open katilp opened 5 years ago

katilp commented 5 years ago

This works, another option without installing toolbox below

katilp commented 4 years ago

Install with: https://golb.hplar.ch/2019/01/docker-on-windows10-home-scratch.html

then on command prompt

start_docker 
docker-machine ssh

docker run .... (see http://opendata.cern.ch/docs/cms-guide-docker and https://github.com/clelange/cmssw-docker/) e.g.

docker run --name opendata -it cmsopendata/cmssw_5_3_32 /bin/bash (without cvmfs access) or

docker run --rm --privileged -it clelange/slc6-cmssw-cvmfs /bin/bash (with cvmfs access)

docker ps (lists running containers) docker images (lists downloaded images) docker --help

Question(s):

The cmssw-cvmfs container reads the condition data in cache if that container is kept (run without -rm) and used another time. The cache usage (df) shows the same when the container is started again, but the starting time for the test job still slow😕 and apparently the condition data is not read from cache but from the cvmfs (TBC)

Just for completeness

VirtualBox GUI does not need to be running.

katilp commented 4 years ago

If 2004 update (for WSL2) does not come automated, it can be downloaded from https://support.microsoft.com/en-us/help/4028685/windows-10-get-the-update