Add sudo shim to dockerfiles/dind/ (#209)
This commit is contained in:
committed by
Marcos Nils
parent
3db75cd297
commit
15a833fcf5
@@ -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/"]
|
||||
|
||||
|
||||
@@ -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/"]
|
||||
|
||||
5
dockerfiles/dind/sudo
Executable file
5
dockerfiles/dind/sudo
Executable file
@@ -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 $@
|
||||
Reference in New Issue
Block a user