Run phpmyadmin with docker through UNIX sockets on localhost

Valentin Mari
ubykuo Labs
Published in
1 min readJun 5, 2018
https://gist.github.com/vmari/7ed843064d2184c25521b5a65231c2f6

Why? there is a lot of development servers, Notebooks and Desktops with an Apache or nginx running only for PhpMyAdmin and a couple of systems.

Without mention the security risks, you have wasted resources and a lot of configurations files to keep updated.

Now you can create an alias in bash, or a script, running as you please with a one-liner. If you're too lazy to write them, here is a template for .bashrc

.bashrc aliases for start and stop phpmyadmin container

Happy coding!

--

--