Thursday, July 5, 2018

Building and running gluster container

Building and running gluster container:

# clone
git clone

cd gluster-containers/CentOS/

# Build using dockerfile
docker build -t glusterfs .

# Now run
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  glusterfs

# Now, you can login to the container and check whether glusterd is running

Also, peer probe to other gluster containers using its IP address.

The above workflow is for building  the contianer from source.

You can also, simply pull the container using:
 # docker pull gluster/gluster-centos

and then start running as mentioned above.

No comments:

Post a Comment