diff options
author | Humble Devassy Chirammal <humble.devassy@gmail.com> | 2017-01-26 23:11:12 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-26 23:11:12 +0530 |
commit | ba821d903d34ebf5014a647d92d9e0b2acd0c6a3 (patch) | |
tree | 766512fdcccb983f1383cc300c21bc6871e44bc7 | |
parent | e0bf99912a3d0021216e18fdb5d76b80cdc8cf33 (diff) | |
parent | eaf490be2a9bee7d8e587529afd71bcdfbb86815 (diff) | |
download | gluster-ba821d903d34ebf5014a647d92d9e0b2acd0c6a3.tar.gz gluster-ba821d903d34ebf5014a647d92d9e0b2acd0c6a3.tar.bz2 gluster-ba821d903d34ebf5014a647d92d9e0b2acd0c6a3.tar.xz gluster-ba821d903d34ebf5014a647d92d9e0b2acd0c6a3.zip |
Merge pull request #28 from SaravanaStorageNetwork/SaravanaStorageNetwork-patch-1-1
Update README.md
-rw-r--r-- | README.md | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -36,10 +36,18 @@ For CentOS, $ docker build -t gluster-centos docker/CentOS/Dockerfile ~~~ This command will build the docker image from the Dockerfile you just cloned and will be assigned the name gluster-fedora or gluster-centos respectively. â-tâ option is used to give a name to the image we are about the build. -Once the image is built in either of the above two steps, we can now run the container with gluster daemon running. For this run the command: +Once the image is built in either of the above two steps, we can now run the container with gluster daemon running. + +Before this, ensure the following directories are created in the system from where docker is launched: + - /etc/glusterfs + - /var/lib/glusterd + - /var/log/glusterfs +Also, ensure they are empty to avoid any conflicts. +Now run the following command: ~~~ -$ docker run -v /etc/glusterfs:/etc/glusterfs;z -v /var/lib/glusterd:/var/lib/glusterd:z -v /var/log/glusterfs:/var/log/glusterfs:z -v /sys/fs/group:/sys/fs/cgroup:ro -d --privileged=true --net=host -v /dev/:/dev gluster/gluster-centos + +$ docker run -v /etc/glusterfs:/etc/glusterfs:z -v /var/lib/glusterd:/var/lib/glusterd:z -v /var/log/glusterfs:/var/log/glusterfs:z -v /sys/fs/cgroup:/sys/fs/cgroup:ro -d --privileged=true --net=host -v /dev/:/dev gluster/gluster-centos ~~~ ( is either gluster-fedora or gluster-centos as per the configurations so far) @@ -94,7 +102,7 @@ The IP address is â172.17.0.2â ##### Get inside the container ~~~ -$ docker exec -ti d273cc739c9d +$ docker exec -ti d273cc739c9d bash -bash-4.3# ps aux |grep glusterd root 34 0.0 0.0 448092 15800 ? Ssl 06:01 0:00 /usr/sbin/glusterd -p /var/run/glusterd.pid |