ironstar-io / tokaido

Zero-conf Drupal Local Development Environments with Docker
https://tokaido.io
BSD 3-Clause "New" or "Revised" License
57 stars 10 forks source link

Proxy service crashes when project names use upper case #181

Closed ironmike-au closed 5 years ago

ironmike-au commented 5 years ago

Using any upper-case characters in a project name will cause the proxy server to complain about being unable to find the network:

🔐  Setting up HTTPS access...
Tokaido encountered a fatal error and had to stop at command 'docker-compose -f /Users/mrichardson/.tok/proxy/docker-compose.yml up --remove-orphans -d'
Service "proxy" uses an undefined network "Drupal88_default"

However the network does exist - but in lower case

$ docker network ls | grep -i drupal88
9bf17ef7238f        drupal88_default          bridge              local

Presumably we are either incorrectly converting the network name to lowercase, or Docker is.

ironmike-au commented 5 years ago

Background here is that Docker uses all lowercase names when creating things like volumes, networks, and containers. The referenced PR fixes this by converting project names to lowercase when making calls to Docker.