Site Tools


compute_docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
compute_docker [2021/03/31 20:00] pgh5acompute_docker [2024/03/22 18:06] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +=== Using Docker on dedicated Docker nodes ===
 +
 +The nodes ''docker[01-02]'' allow all users to instantiate a docker container via the ''sudo'' command. Users can directly ''ssh'' into the docker nodes from the portal cluster, then execute ''sudo /usr/bin/docker'' to elevate their privileges and execute docker without the need for 'root' privileges. For example:
 +
 + ''abc1de@portal01$ ssh docker01''
 +
 + ''abc1de@docker01$ sudo /usr/bin/docker''
 +
 +=== Using Docker on select SLURM nodes ===
 +
 +The nodes //slurm[1-5]// allow all users to instantiate a docker container via the ''sudo'' command. Users can execute ''sudo /usr/bin/docker'' to elevate their privileges and execute docker without the need for 'root' privileges.
 +
 +You must first execute a SLURM job to gain access to the //slurm[1-5]// nodes, typically by using the [[compute_slurm|Direct Login to servers]] feature. This doesn't require the use of a job script. For example:
 +
 +''abc1de@portal01$ srun -w slurm1 --pty bash -i -l -''
 +
 +''abc1de@slurm1$ sudo /usr/bin/docker'' 
 +
 +=== Using Apptainer on dedicated Apptainer nodes ===
 +
 +The node ''apptainer01'' allow all users to instantiate an apptainer container via the ''sudo'' command. Users can directly ''ssh'' into the node from the portal cluster, then execute ''sudo /usr/bin/apptainer'' to elevate their privileges and execute apptainer without the need for 'root' privileges. For example:
 +
 + ''abc1de@portal01$ ssh apptainer01''
 +
 + ''abc1de@apptainer01$ sudo /usr/bin/apptainer''
 +