{{htmlmetatags>metatag-robots=(index, follow)}} ====== New images pwstudiocpu pwstudiogpu ====== The new images do not support CentOS 7.9 **Must read for this chapter:** To use the new images, simply replace qflow with pwstudio in the image-import step and the container-start step of the corresponding tutorial. For example, replace qflowgpu:latest with pwstudiogpu:latest, and qflowcpu:latest with pwstudiocpu:latest ---- ===== Check the PWmat version ===== docker run ccr.ccs.tencentyun.com/lxkt/pwstudiocpu PWmat -v ===== Linux: start the pwstudiogpu container ===== docker run -d --name pwstudiogpu \ -v /var/tmp/pwmat_host_secret:/var/tmp/pwmat_host_secret:ro \ --ulimit memlock=-1:-1 --ulimit stack=-1:-1 \ --gpus all --shm-size=128G --privileged -e SELINUX=disabled \ -p 80:80 -p 81:81 -p 2297:2297 -p 5010:5010 --hostname=mstation \ ccr.ccs.tencentyun.com/lxkt/pwstudiogpu:latest ===== Linux: start the pwstudiocpu container ===== docker run -d --name pwstudiocpu \ -v /var/tmp/pwmat_host_secret:/var/tmp/pwmat_host_secret:ro \ --ulimit memlock=-1:-1 --ulimit stack=-1:-1 \ --shm-size=128G --privileged -e SELINUX=disabled -p 80:80 -p 81:81 -p 2297:2297 -p 5010:5010 \ --hostname=mstation ccr.ccs.tencentyun.com/lxkt/pwstudiocpu:latest ===== Linux: start the pwstudiogpu container, keeping data (including qflow) ===== docker run -d --name pwstudiogpu \ -v /var/tmp/pwmat_host_secret:/var/tmp/pwmat_host_secret:ro \ -v /root/vol/pwmat:/share/home/pwmat \ -v /root/vol/mysql:/var/lib/mysql \ --ulimit memlock=-1:-1 --ulimit stack=-1:-1 \ --gpus all --shm-size=128G --privileged -e SELINUX=disabled \ -p 80:80 -p 81:81 -p 2297:2297 -p 5010:5010 --hostname=mstation \ ccr.ccs.tencentyun.com/lxkt/pwstudiogpu:latest ===== Host machine, user user01, keeping data (including qflow) ===== > The pwmat user inside the container has uid/gid 1000/1000 > The user01 user on the host machine has uid/gid 1001/1001 (not 1000/1000) > /home/user01/vol/pwmat is the directory to mount, extracted from pwmat.tgz: the pwmat home directory inside the container > /home/user01/vol/mysql is the directory to mount, extracted from mysql.tgz: the database > > user01 can also be left without read/write permission to pwmat (pure qflow, no modifications needed) # Grant user01 the permission directly setfacl -R -m u:1001:rwx /home/user01/vol/pwmat ls -ln /home/user01/vol/ drwxr-xr-x 7 27 27 4096 Aug 17 17:11 mysql drwx------ 4 1000 1000 91 Aug 17 14:48 pwmat docker run -d --name pwstudiogpu \ -v /var/tmp/pwmat_host_secret:/var/tmp/pwmat_host_secret:ro \ -v $HOME/vol/pwmat:/share/home/pwmat \ -v $HOME/vol/mysql:/var/lib/mysql \ --ulimit memlock=-1:-1 --ulimit stack=-1:-1 \ --gpus all --shm-size=128G --privileged -e SELINUX=disabled \ -p 80:80 -p 81:81 -p 2297:2297 -p 5010:5010 --hostname=mstation \ ccr.ccs.tencentyun.com/lxkt/pwstudiogpu:latest ~~DISCUSSION:off~~