Skip to content

Commit

Permalink
Update install-docker-centos6-beegfs.md
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulrahmanazab committed May 30, 2017
1 parent eb2f10e commit ee3a21e
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions install-docker-centos6-beegfs.md
@@ -1,30 +1,33 @@
# 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:
```bash
mkdir /work/docker
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. The following must run as root:

# Then Create a 120 GiB ext4 image for each docker compute node, then on each compute node:
* Assuming the shared file-system for shared images is ``/work/docker``, Create a 120 GiB ext4 image for each docker compute node, then on each compute node:
```bash
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):
```
* Now install docker 1.7 (don't follow the instructions from docker.com because CentOS 6 is not there):
```bash
yum install docker-io -y

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

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

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

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

0 comments on commit ee3a21e

Please sign in to comment.