Installs and configures bash completion for Docker.
Note that bash completion still has to be initialized by a custom
.bashrc file.
Signed-off-by: Harald Albers <github@albersweb.de>
| ... | ... |
@@ -31,6 +31,7 @@ RUN apt-get update && apt-get install -y \ |
| 31 | 31 |
apparmor \ |
| 32 | 32 |
aufs-tools \ |
| 33 | 33 |
automake \ |
| 34 |
+ bash-completion \ |
|
| 34 | 35 |
btrfs-tools \ |
| 35 | 36 |
build-essential \ |
| 36 | 37 |
curl \ |
| ... | ... |
@@ -142,6 +143,9 @@ ENV DOCKER_BUILDTAGS apparmor selinux btrfs_noversion |
| 142 | 142 |
# Let us use a .bashrc file |
| 143 | 143 |
RUN ln -sfv $PWD/.bashrc ~/.bashrc |
| 144 | 144 |
|
| 145 |
+# Register Docker's bash completion. |
|
| 146 |
+RUN ln -sv $PWD/contrib/completion/bash/docker /etc/bash_completion.d/docker |
|
| 147 |
+ |
|
| 145 | 148 |
# Get useful and necessary Hub images so we can "docker load" locally instead of pulling |
| 146 | 149 |
COPY contrib/download-frozen-image.sh /go/src/github.com/docker/docker/contrib/ |
| 147 | 150 |
RUN ./contrib/download-frozen-image.sh /docker-frozen-images \ |