Similar to @sepulchre01's answer, but after clicking on Applications > Docker > Show Package Contents I could not find the docker exec file under Contents > MacOS. It seems it was moved under Contents > Resources > bin. Ran the docker exec and everything works as expected.