Docker for Mac should install shell completion

Expected behavior

Shell completion should work

Actual behavior

Shell completion is not installed and does not work

Information

$ pinata diagnose -u
OS X: version 10.11.4 (build: 15E65)
Docker.app: version v1.11.0-beta6
Running diagnostic tests:
[OK]      docker-cli
[OK]      Moby booted
[OK]      driver.amd64-linux
[OK]      vmnetd
[OK]      osxfs
[OK]      db
[OK]      slirp
[OK]      menubar
[OK]      environment
[OK]      Docker
[OK]      VT-x

Steps to reproduce the behavior

  1. docker run --[tab][tab] should display a list of available “–options” - it does not

Workaround

  1. Before installing “Docker for Mac”, install docker, docker-compose, docker-machine from homebrew
  2. Remove symlinks for homebrew-installed docker components from /usr/local/bin (rm -v /usr/local/bin/docker*)
  3. Install “Docker for Mac”
  4. Enjoy shell completion
2 Likes