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

Conversation

nouseforaname
Copy link
Contributor

docker/cli#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)"

Workaround recommended in github issue suggests to disable resetting ulimit.

Pre v25 the script contained ulimit -n 1048576, with v25 it changed to: ulimit -Hn 524288.

the default in our base image is:

ulimit -a | grep file
open files (-n) 1048576

so it was a noOp before the change shipped with v25 of docker

to confirm I tried running ulimit -Hn 1048576 and it will succeed..

The issue happens when we want to actually change the ulimit. In our case it would attempt to lower it and it's probably fine not doing that in CI?

What is this change about?

Describe the change and why it's needed.

Please provide contextual information.

Include any links to other PRs, stories, slack discussions, etc... that will help establish context.

What tests have you run against this PR?

Include a comprehensive list of all tests run successfully.

How should this change be described in bosh release notes?

Something brief that conveys the change and is written with the Operator audience in mind.
See previous release notes for examples.

Does this PR introduce a breaking change?

Does this introduce changes that would require operators to take care in order to upgrade without a failure?

Tag your pair, your PM, and/or team!

It's helpful to tag a few other folks on your team or your team alias in case we need to follow up later.

docker/cli#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)"

Workaround recommended in github issue suggests to disable resetting ulimit.

Pre v25 the script contained `ulimit -n 1048576`, with v25 it changed to:
`ulimit -Hn 524288`.

the default in our base image is:

ulimit -a | grep file
`open files                          (-n) 1048576`

so it was a noOp before the change shipped with v25 of docker

to confirm I tried running `ulimit -Hn 1048576` and it will succeed..

The issue happens when we want to actually change the ulimit. In our case it
would attempt to lower it and it's probably fine not doing that in CI?
Copy link
Member

@lnguyen lnguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lnguyen lnguyen merged commit 59632d8 into main Feb 1, 2024
4 checks passed
@lnguyen lnguyen deleted the workaround/docker-cpi-image-issue branch February 1, 2024 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants