FROM ubuntu:16.04 RUN apt-get update RUN apt-get install -y software-properties-common wget RUN wget https://mariadb.org/mariadb_release_signing_key.asc -O - | apt-key add - RUN add-apt-repository "deb [arch=amd64,arm64,i386,ppc64el] http://mirrors.coreix.net/mariadb/repo/10.4/ubuntu xenial main" RUN apt-get update RUN apt install -y rsync mariadb-server-10.4 galera-4 mariadb-client-10.4 RUN systemctl unmask mariadb COPY galera.cnf /etc/mysql/conf.d/galera.cnf #RUN echo "wsrep_node_address=`ip a s eth0|grep inet|head -1|awk '{print $2}'|cut -d "/" -f 1`" >> /etc/mysql/conf.d/galera.cnf ENTRYPOINT ["mysqld","{{ extra_docker_options }}"]