Recently, when I tried to run Local by Flywheel I received the notification
Regenerating Machine Certificates
Local detected invalid Docker Machine TLS certificates and is fixing them now.
Unfortunately this notification kept popping up over and over and Local by Flywheel was unusable.
This thread on the Local by Flywheel support forum provided the solution but required some hunting so I’m documenting the solution for my Mac here.
Step 1: Quit Local
Quit local.
Step 2: Create Docker Alias
From the command line, run
alias local-docker-machine="/Applications/Local\ by\ Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine"
and wait for it to complete.
Step 3: Regenerate Certs
When the previous command has finished, from the command line, run
local-docker-machine stop local-by-flywheel; rm -rf ~/.docker/machine/certs; local-docker-machine create local-cert-gen; local-docker-machine start local-by-flywheel; local-docker-machine regenerate-certs -f local-by-flywheel; local-docker-machine rm -f local-cert-gen;
and wait for it to complete.
Step 4: Re-open Local
At this point, Local by Flywheel functioned properly.
Hi Sal! When I try to run the docker alias command it comes up with ‘alias’ is not recognized as an internal or external command, operable program or batch file.
Any ideas as to what I could try? Thank you so much for your time my friend!
Hi Luke,
Based on that error message, I suspect you are on a Windows machine. I am on a Mac. I’m sorry about the confusion with this. I’ve added a note to this article to clarify my solution is for a Mac.
If you figure out how to fix it on Windows, I hope you’ll drop a description or a link here for others with the same problem.
Hi Sal and Luke,
I had the same problem on my Windows machine and solved running the scripts in Git Bash for Windows.
Thank you Sal for this useful guide! ๐
Thank you Sal! You saved me a lot of time, MUCH appreciated!
Genius!
Thank you so much, that solved the problem ๐
Sal, thank you so much!! You deserve a medal for this ๐
Thank you so much !!!!
It is working like nice and smooth !!!
Please does someone know a workaround for Windows? I’ve been having this issue for a week and seems no solution for us window users