docker: Error response from daemon: Cannot link to /compose_mysql_1, as it does not belong to the default network.

docker: Error response from daemon: Cannot link to /compose_mysql_1, as it does not belong to the default network.

I’ve been doing a lot of work with Docker recently, infact this website, Remote CTO, is currently running in a Docker container, well 3, one for Nginx, one for PHP-FPM and one for MySQL. Soon there might be a fourth, for either Redis or Memcache, I haven’t decided yet!

I do a lot of cool stuff at the command line. e.g using WP-CLI to manage my WordPress installations.