This https://docs.docker.com/installation/mac/ says to use a download and doesn't mention homebrew. If it doesn't work then I understand not feeling confident in their release, so you should try it!
TLDR: Homebrew does not appear to be an official install method.