When I try to right click -> attach shell on any of my docker boxes, a terminal windows opens and outputs the following:
* Executing task: docker exec -it <container_id> bash
zsh:1: command not found: docker
* The terminal process "/bin/zsh '-c', 'docker exec -it <container_id> bash'" failed to launch (exit code: 127).
* Terminal will be reused by tasks, press any key to close it.
When I run docker exec -it <container_id> bash
manually, it works. The "attach shell" dropdown option just doesn't work. Why?
I've tried changing my default terminal to bash with no luck. I'm on Mac Monterey 12.1 with the M1 chip. With some digging I found a thread that mentioned this could be an issue with Mac but that thread was using a different OS version.