diff --git a/dockerfiles/dind/Dockerfile.dind b/dockerfiles/dind/Dockerfile.dind index cee6299..117a238 100644 --- a/dockerfiles/dind/Dockerfile.dind +++ b/dockerfiles/dind/Dockerfile.dind @@ -32,8 +32,8 @@ RUN mkdir /etc/bash_completion.d \ RUN rm /sbin/modprobe && echo '#!/bin/true' >/sbin/modprobe && chmod +x /sbin/modprobe # Install a nice vimrc file and prompt (by soulshake) -COPY ["docker-prompt","sudo","/usr/local/bin/"] -COPY [".vimrc",".profile", ".inputrc", ".gitconfig", "./root/"] +COPY ["docker-prompt", "sudo", "/usr/local/bin/"] +COPY [".vimrc", ".profile", ".inputrc", ".gitconfig", "./root/"] COPY ["motd", "/etc/motd"] COPY ["daemon.json", "/etc/docker/"] diff --git a/dockerfiles/dind/Dockerfile.dind-ee b/dockerfiles/dind/Dockerfile.dind-ee index bb98652..5802425 100644 --- a/dockerfiles/dind/Dockerfile.dind-ee +++ b/dockerfiles/dind/Dockerfile.dind-ee @@ -13,7 +13,7 @@ RUN apt-get update \ # Install a nice vimrc file and prompt (by soulshake) -COPY ["docker-prompt", "ucp.sh", "/usr/local/bin/"] +COPY ["docker-prompt", "sudo", "ucp.sh", "/usr/local/bin/"] COPY [".vimrc",".profile", ".inputrc", ".gitconfig", "workshop.lic", "./root/"] COPY ["motd", "/etc/motd"] COPY ["ee/daemon.json", "/etc/docker/"] diff --git a/dockerfiles/dind/sudo b/dockerfiles/dind/sudo new file mode 100755 index 0000000..c832c17 --- /dev/null +++ b/dockerfiles/dind/sudo @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# This is shim to help with the case were pasted commands from a readme assume you are not root. Since this isto be run by root, it should effectively be a dummy command that allows the parameters to pass through. + +exec $@