Reputation: 2412
I've deployed the CloudFormation Docker for AWS CE stack, as per the instructions.
So far, though, I haven't been able install Docker command-line completion on any node. Granted the OS in these is a special (apparently somewhat minified) OS, but it DOES have /bin/bash
on it, so there should be a way to get autocomplete running, right?
Upvotes: 2
Views: 877
Reputation: 412
Since this is still true for 2021 on aws-linux2, giving you have installed the package bash-completion
, here's my way to do it (despite the fact that the docker-completion should be in the docker-cli package, but doesn't work for me either):
sudo curl https://raw.githubusercontent.com/docker/docker-ce/master/components/cli/contrib/completion/bash/docker -o /etc/bash_completion.d/docker.sh
sudo chmod +x /etc/bash_completion.d/docker.sh
logout and login again (or just enter a new bash
)
Upvotes: 5