Browse code

Enable bash completion in development container

Signed-off-by: Harald Albers <github@albersweb.de>

Harald Albers authored on 2017/06/25 06:51:06
Showing 1 changed files
... ...
@@ -217,7 +217,8 @@ COPY hack/dockerfile/install-binaries.sh /tmp/install-binaries.sh
217 217
 RUN /tmp/install-binaries.sh tomlv vndr runc containerd tini proxy dockercli
218 218
 ENV PATH=/usr/local/cli:$PATH
219 219
 
220
-# Activate bash completion if mounted with DOCKER_BASH_COMPLETION_PATH
220
+# Activate bash completion and include Docker's completion if mounted with DOCKER_BASH_COMPLETION_PATH
221
+RUN echo "source /usr/share/bash-completion/bash_completion" >> /etc/bash.bashrc
221 222
 RUN ln -s /usr/local/completion/bash/docker /etc/bash_completion.d/docker
222 223
 
223 224
 # Wrap all commands in the "docker-in-docker" script to allow nested containers