From cec5ca75e1ba2e05095a5ff072c3738684575d86 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Sat, 24 Jun 2017 23:51:06 +0200 Subject: [PATCH] Enable bash completion in development container Signed-off-by: Harald Albers --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index afc7f5f639..a5b35e0ec7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -217,7 +217,8 @@ COPY hack/dockerfile/install-binaries.sh /tmp/install-binaries.sh RUN /tmp/install-binaries.sh tomlv vndr runc containerd tini proxy dockercli ENV PATH=/usr/local/cli:$PATH -# Activate bash completion if mounted with DOCKER_BASH_COMPLETION_PATH +# Activate bash completion and include Docker's completion if mounted with DOCKER_BASH_COMPLETION_PATH +RUN echo "source /usr/share/bash-completion/bash_completion" >> /etc/bash.bashrc RUN ln -s /usr/local/completion/bash/docker /etc/bash_completion.d/docker # Wrap all commands in the "docker-in-docker" script to allow nested containers