Skip to content

Commit

Permalink
Update dind hack
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrs authored Feb 21, 2025
1 parent 1fbc95c commit 71167cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions devcontainer/scripts/prepare_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ packages=(
less
fontconfig
# required for docker in docker
# https://github.com/moby/moby/blob/97a5435d33f644e7cfc0285e483306f2ea410710/project/PACKAGERS.md#runtime-dependencies
# https://github.com/moby/moby/blob/7d9d601e6de0020bc49678d9b48b5d56d8163558/project/PACKAGERS.md#runtime-dependencies
iptables
xz-utils
pigz
Expand Down Expand Up @@ -111,15 +111,15 @@ ${CURL} "https://github.com/docker/compose-switch/releases/download/v${DOCKER_CO
chmod +x /usr/local/bin/docker-compose

## dind
# https://github.com/docker-library/docker/blob/9ee39bafc3844108938e3469b262738a5b0e804b/Dockerfile-dind.template#L47
# https://github.com/docker-library/docker/blob/485fefe743baed5a2dd9e5d22b685c14eda4c61e/Dockerfile-dind.template#L47
addgroup --system dockremap
adduser --system --ingroup dockremap dockremap
echo 'dockremap:165536:65536' | tee -a /etc/subuid
echo 'dockremap:165536:65536' | tee -a /etc/subgid

# install dind hack
# https://github.com/moby/moby/commits/master/hack/dind
DIND_COMMIT="65cfcc28ab37cb75e1560e4b4738719c07c6618e"
DIND_COMMIT="c43aa0b6aa7c88343f0951ba9a39c69aa51c54ef"
${CURL} "https://github.com/moby/moby/raw/${DIND_COMMIT}/hack/dind" \
-o /usr/local/bin/dind
chmod +x /usr/local/bin/dind
Expand Down

0 comments on commit 71167cc

Please sign in to comment.