diff options
author | Saravanakumar Arumugam <SaravanaStorageNetwork@users.noreply.github.com> | 2017-01-19 13:33:08 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-19 13:33:08 +0530 |
commit | eaf490be2a9bee7d8e587529afd71bcdfbb86815 (patch) | |
tree | 766512fdcccb983f1383cc300c21bc6871e44bc7 | |
parent | e0bf99912a3d0021216e18fdb5d76b80cdc8cf33 (diff) | |
download | gluster-eaf490be2a9bee7d8e587529afd71bcdfbb86815.tar.gz gluster-eaf490be2a9bee7d8e587529afd71bcdfbb86815.tar.bz2 gluster-eaf490be2a9bee7d8e587529afd71bcdfbb86815.tar.xz gluster-eaf490be2a9bee7d8e587529afd71bcdfbb86815.zip |
Update README.md
updated README and few typos fix
-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 |