Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker in docker service fails to start #2493

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions ci/dockerfiles/docker-cpi/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,18 @@ apt-get update

apt-get install -y --no-install-recommends docker-ce

# https://github.com/docker/cli/issues/4807
# As of 02/01/2024 a change in the "/etc/init.d/docker" script shipped with docker v25
# is preventing the cpi image to work.
# when start-bosh runs `service docker start` it errors with:
# "/etc/init.d/docker: 62: ulimit: error setting limit (Invalid argument)"
# disable resetting ulimit. Pre v25 the script contained `ulimit -n 1048576`
# the default in our base image is:
# ulimit | grep file
# `open files (-n) 1048576`
# so it was a noOp..
# running `ulimit -Hn 1048576` will succeed.. The issue happens when we want to raise the ulimit.

sed -i 's/\(ulimit -Hn [0-9]*\)/#\1/' /etc/init.d/docker

rm -rf /var/lib/apt/lists/*