Solveddocker sync [how to fix] Can't run docker-sync after upgrading to MacOS 10.15 (Catalina)

It's a report and reminder how to fix it for those who will be searching for this issue.
After OSX upgrade you will see that docker-sync start is not working.
Unfortunately I don't remember what was exactly the reason ruby version 2.6 (to be specific: ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin19]) appeared, but the thing is, you will see that :

Error

~~ docker-sync start
~~ zsh: /usr/local/bin/docker-sync: bad interpreter: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: no such file or directory

And you will also see that you have 2 versions of ruby, you will try to switch between them and this won't help.

The only thing that helped in my case is to:
uninstall ruby,
then install it again (\curl -sSL https://get.rvm.io | bash -s stable --ruby),
then install this specific version rvm install "ruby-2.3.8"
make it default rvm use 2.3
and reinstall docker-sync gem install docker-sync

Docker Driver

Docker Desktop 2.1.0.3 (38240), the latest version

Sync strategy

native_osx or unison doesn't matter

OS

OSX 10.15 (Catalina)

13 Answers

✔️Accepted Answer

@moon-deer here's what i did after docker-sync was broken after upgrading to Catalina

xcode-select --install
gem install docker-sync

Other Answers:

@moon-deer here's what i did after docker-sync was broken after upgrading to Catalina

xcode-select --install
gem install docker-sync

I did only work with these commands

xcode-select --install
sudo gem install docker-sync -n /usr/local/bin

I using MacOS Catalina

More Issues: