for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

Bash completion file missing from Docker Desktop for Mac

Open sflanker opened this issue 4 years ago • 8 comments

  • [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

sflanker avatar Jun 04 '22 00:06 sflanker

Confirmed the file is there in v4.8.2

sflanker avatar Jun 04 '22 20:06 sflanker

Definitely reproducible on a second Mac after a clean update from 4.8.2 -> 4.9.0

sflanker avatar Jun 04 '22 20:06 sflanker

Same here, confirmed, file missing after 4.9.0 update

mhhajeer avatar Jun 11 '22 07:06 mhhajeer

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.

xeron avatar Jun 12 '22 16:06 xeron

Thanks for the report! Let me ask around about this.

nicks avatar Jun 16 '22 14:06 nicks

We have a fix for this in 4.10

nicks avatar Jun 29 '22 12:06 nicks

This issue has been fixed in latest release, please consider updating to latest version and give us your feedback!

4.10.0 Release notes

maxcleme avatar Jun 30 '22 16:06 maxcleme

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

docker-robott avatar Jul 30 '22 03:07 docker-robott