Docker and docker-compose didn't symlink correctly

Expected behavior

I expected docker and docker-compose to symlink to /Applications/Docker.app/Contents/Resources/bin

Actual behavior

docker and docker-compose were symlinked to /Users/adam/Library/Group Containers/group.com.docker/bin/docker-compose

Information

I fixed the problem by manually creating the symlink. I also tried to do a full factory reset to see if it would link it appropriately, that didn’t work/

Steps to reproduce the behavior

Docker toolbox at one point was installed on my system via brew. I think at another time I installed it using the mac package. I installed docker mac beta first and then uninstall docker-toolbox. Unclear whether this is part of the problem or not.

/Users/adam/Library/Group Containers/group.com.docker/bin/docker-compose is in turn a symlink to /Applications/Docker.app/Contents/Resources/bin/docker-compose. So this shouldn’t be an issue