Bash completion file missing from Docker Desktop for Mac
- [x] I have tried with the latest version of Docker Desktop
- [x] I have tried disabling enabled experimental features
- [ ] I have uploaded Diagnostics
- Diagnostics ID:
Expected behavior
It should be possible/easy to enable bash completion for the docker command that is installed as part of Docker Desktop.
Actual behavior
The Docker app for Mac used to have a bash completion file. As of v4.9.0 this file is no longer preset (although the docker-compose still exists).
Missing file: /Applications/Docker.app/Contents/Resources/etc/docker.bash-completion
This breaks widely circulated instructions like https://gist.github.com/rkuzsma/4f8c1354a9ea67fb3ca915b50e131d1c
Information
- Is it reproducible? Yes, as far as I can tell. The problem was introduced after a performed a fresh reinstall of Docker Desktop.
- Is the problem new? Yes. this file used to exist, now it is gone. I'm not sure one version removed the file because I missed some updates.
- macOS Version: 12.3.1
- Intel chip or Apple chip: Intel
- Docker Desktop Version: 4.9.0
Confirmed the file is there in v4.8.2
Definitely reproducible on a second Mac after a clean update from 4.8.2 -> 4.9.0
Same here, confirmed, file missing after 4.9.0 update
I think it's been moved to /Applications/Docker.app/Contents/Resources/etc/docker. I changed my symlink to this location and autocomplete works again.
Thanks for the report! Let me ask around about this.
We have a fix for this in 4.10
This issue has been fixed in latest release, please consider updating to latest version and give us your feedback!
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked