title: How can I shard MySQL database with Vitess using both Docker images?
body: <p>I found out about Vitess which let you shard MySQL database.
  I want to use the docker image of both MariaDB and Vitess but I'm not quite sure what to do next. I'm using CentOS 7.</p>
  
  <p>I installed the images</p>
  
  <pre><code>docker pull mariadb
  docker pull vitess/root
  docker pull vitess/orchestrator
  </code></pre>
  
  <p>Log inside the vitess image</p>
  
  <pre><code>sudo docker run -ti vitess/root bash
  </code></pre>
  
  <p>As the website said, make build</p>
  
  <pre><code>make build
  </code></pre>
  
  <p>I set up the variables</p>
  
  <pre><code>export VTROOT=/vt
  export VTDATAROOT=/vt/vtdataroot
  </code></pre>
  
  <p>The manual said it was in the home directory but in the image it's at root.</p>
  
  <p>But after that I'm stuck. I laucnh zookeeper : ./zk-up.sh</p>
  
  <pre><code>Starting zk servers... Waiting for zk servers to be ready... Started zk servers. ERROR: logging before flag.Parse: E0412
  00:31:26.378586     132 syslogger.go:122] can't connect to syslog
  W0412 00:31:26.382527     132 vtctl.go:80] cannot connect to syslog:
  Unix syslog delivery error Configured zk servers.
  </code></pre>
  
  <p>Oops, okay, let's continue...</p>
  
  <p>./vtctld-up.sh for the web internace</p>
  
  <pre><code>Starting vtctld...
  Access vtctld web UI at http://88bdaff4e181:15000
  </code></pre>
  
  <p>Obviously I cannot access that link since it's in docker on a headless server</p>
  
  <p>./vttablet-up.sh suppose to bring up 3 vttablets, but MariaDB is in another docker, not yet started and if I open the file it is not apparent how to set it up.</p>
  
  <p>Is there any MySQL or PostgreSQL sharding solution more easily installable?
  Or how can I set this up?</p>
  
  <p>(Docker noob here sorry)</p>
  
  <p>Thanks!</p>