Galera+REHL problems

We are running on RedHat Linux Enterprise and docker v1.13.1. I’ve been trying to get the Galera template from the catalog up and running but keep running into errors similar to the one below whenever the galera container tries to start. Any guidance would be appreciated.

“Error (Error response from daemon: invalid header field value “oci runtime error: container_linux.go:247: starting container process caused “process_linux.go:359: container init caused \“rootfs_linux.go:54: mounting \\\”/var/lib/docker-latest/containers/0f8dc21fe3e0c572349c05a26b3ca00e32a6878b9d4dfd5dd3df2177d2ef3eac/secrets\\\” to rootfs \\\”/var/lib/docker-latest/overlay2/de572399e45d9a90a7357333fb2618de42f51d6829afd120966773dd7bb24db3/merged\\\” at \\\"/run/secrets\\\" caused \\\“lstat /var/lib/docker-latest/overlay2/de572399e45d9a90a7357333fb2618de42f51d6829afd120966773dd7bb24db3/merged/run/secrets: not a directory\\\”\""\n": Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type)"

I wanted to share the findings on this one so that anyone running into this behind me doesn’t have to suffer the same pain. There is an issue with the rancher/galera-conf:v0.2.0 image that prevents it from running on RHEL 7.x .

when I look at the Dockerfile at https://github.com/rancher/catalog-dockerfiles/tree/master/galera/containers/0.2.0/galera-conf and try to build rancher/galera-conf:v0.2.0 manually, it throws an error when you run the image after “ADD ./run ./start_galera /”

The “ADD ./run ./start_galera /” is not allowed in RHEL 7 because it tries to handle both ./run and /run (which is a folder in alpine). this can be easily solved by renaming ./run to something that is unique like “./run-me” and then changing the entrypoint accordingly.

There is no solution to get this working yet in RHEL other to roll your own dockerfile. there is an additional error in the currently posted https://github.com/rancher/catalog-dockerfiles/blob/master/galera/containers/0.2.0/galera-conf/Dockerfile that need to be resolved before you can build it yourself.