title: docker phpmyadmin - how to add remote server
body: <p>I can't seem to find the real installation path of my phpmyadmin.</p>
  
  <p>I bash into the phpmyadmin container like this: (I'm on windows)</p>
  
  <pre><code>winpty docker exec -it pma_container_name sh
  </code></pre>
  
  <p>And then I got in by default in /var/www/html </p>
  
  <p>and I see all the phpmyadmin files there. </p>
  
  <p>I also noticed that there's also a phpmyadmin in <strong>/etc/phpmyadmin</strong> containing 3 config files, config.inc.php, congif.secret.inc.php, config.user.inc.php</p>
  
  <p>There's also a phpmyadmin in the <strong>/usr/src/phpmyadmin</strong> containing all the phpmyadmin files.</p>
  
  <p>Now, In /var/www/html - I just:</p>
  
  <pre><code>cp config.sample.inc.php config.inc.php
  </code></pre>
  
  <p>Then I created a sample file like:</p>
  
  <pre><code>touch phpinfo.php
  </code></pre>
  
  <p>and I access it in the browser on <strong>localhost:8082/phpmyadmin.php</strong></p>
  
  <p>and it totally works.</p>
  
  <p>Now, since I know initially that it was reading my new file, added some config at the bottom: </p>
  
  <pre><code>$i++;
  $cfg['Servers'][$i]['host'] = ''; // remote ip address here
  $cfg['Servers'][$i]['user'] = '';
  $cfg['Servers'][$i]['password'] = '';
  $cfg['Servers'][$i]['auth_type'] = 'cookie';
  </code></pre>
  
  <p>but still nothing happened in the phpmyadmin. </p>
  
  <p>I can't seem to add or choose a remote server.</p>
  
  <p>Any idea why? </p>
  
  <p>I also noticed that the container is in Alpine.</p>