Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.24 KB

docker-slurm.md

File metadata and controls

35 lines (28 loc) · 1.24 KB

Docker on Slurm

Installing Docker on CentOS 6.x cluster with BeeGFS

Last supported docker for CentOS 6.x is docker 1.7 which doesn't support BeeGFS as a backing file-system. And if the local disk of compute nodes is small, the solution will be creating ext4 images on beegfs.

  • Assuming the shared file-system /work, as root:
mkdir /work/docker

# Then Create a 120 GiB ext4 image for each docker compute node, then on each compute node:
mkdir /docker
mount -o loop /work/docker/<node-name>.ext4 /docker

# Now install docker 1.7 (don't follow the instructions from docker.com because CentOS 6 is not there):
yum install docker-io -y

# Tell docker to use /docker to store containers
vim /etc/sysconfig/docker
# >> set other_args=-g /docker

# If docker complained, do the following instead:
mv /var/lib/docker /docker/
ln -s /docker/docker /var/lib/docker

# Create the docker group and add the dockerroot user to it:
groupadd docker
usermod -aG docker dockerroot

# Start docker service and configure it to start on boot
service docker start
chkconfig docker on

Install Socker

To run docker jobs securely on Slurm, you need to install socker