title: Can't connect to a firebird server on docker
body: <p>I'm a macOS user and I got weird errors just to create a database with firebird. I saw that there are some dock containers with firebird that run just fine ( i was able to create databases, perform queries and so on) but when I tried to connect from my local ISQL or razorSQL client ( through JDBC), I get some weird errors like  "unavailable database" or "can't open file"</p>
  
  <p>I'm also not sure how <strong>ISQL CONNECT</strong> string really works because every site I saw there is a different one.</p>
  
  <p>I got this docker image: ( <a href="https://hub.docker.com/r/jacobalberty/firebird/" rel="nofollow">https://hub.docker.com/r/jacobalberty/firebird/</a>)</p>
  
  <p>I created my container like this:</p>
  
  <pre><code>docker run -d --name firebird -p 3050:3050 -v /data/firebird/databases:/databases jacobalberty/firebird:2.5-ss
  </code></pre>
  
  <p>my docker-machine IP is:</p>
  
  <pre><code>192.168.99.100
  </code></pre>
  
  <p>I tried to connect like this:</p>
  
  <pre><code>CONNECT '0.0.0.0:3050://databases/test.fdb' user 'SYSDBA' password 'masterkey';
  unavailable database
  </code></pre>
  
  <p>And also like this:</p>
  
  <pre><code>CONNECT '192.168.99.100:/databases/test.fdb' user 'SYSDBA' password 'masterkey';
  connection rejected by remote interface
  
  
  CONNECT '192.168.99.100:3050:/databases/test.fdb' user 'SYSDBA' password 'masterkey';
   Statement failed, SQLSTATE = 08001
   unavailable database
  </code></pre>
  
  <p>When i enter the docker container, the file is there:</p>
  
  <pre><code>root@e4212b9f9d16:/databases# pwd
  /databases
  root@e4212b9f9d16:/databases# ls
  test.fdb
  </code></pre>
  
  <p>Also, I'm not sure how to check if the firebird server is running ( i guess it is cause I can 'connect' to a database inside the container'.. but the docker container is definally up and running - did a successful telnet on the ip and port)</p>
  
  <p>I also tried to use the container IP (172.17.0.2) but i got a timeout</p>
  
  <p>Im most familiar with mysql and SQLite never touched a firebird db before and as the user got this DB, i have to mock it, develop an app using fake data and then connect it to the real firebird (so changing the DB is not an option)</p>