I came across an issue with docker in windows/wsl ...
# troubleshoot
f
I came across an issue with docker in windows/wsl using
dev.sh
. The script would fail because of unexpected character and a SO post eluded to a breaking change in Docker Compose V2. I turned this option off in docker and it works for me now, but I am curious, did anyone else have this issue? Do ppl still use dev.sh? Or are ppl using kubernetes for development?
e
We use dev.sh for local dev, but we are mostly on macs. What was the illegal character? Feel free to push a PR with the fix!
f
The error message would change depending on whether I ran
dev.sh
in the docker folder or above it as
docker/dev.sh
but it looked like the error message in this SO post: https://stackoverflow.com/questions/69485319/starting-django-with-docker-unexpected-character
I'll try and find out more and if I can figure it out will try a PR
Appears to be logged at docker/compose in this issue: https://github.com/docker/compose/issues/8879 The fix looks like updating env files so that variables with spaces are encapsulated with a pair of double quotes
e
Ahh got it. That seems like a safe change to me. If you get through this feel free to send out a PR!
Thanks for digging into this
f
I'll try my best, I'm not a docker pro yet so Im stillt rying to wrangle all the moving parts.