Skip to content

fix(docker-in-docker): create /usr/local/share directory if it doesn't exist before writing …#1594

Merged
abdurriq merged 1 commit intodevcontainers:mainfrom
KarstenB:fix/dind_init_script
Mar 4, 2026
Merged

fix(docker-in-docker): create /usr/local/share directory if it doesn't exist before writing …#1594
abdurriq merged 1 commit intodevcontainers:mainfrom
KarstenB:fix/dind_init_script

Conversation

@KarstenB
Copy link
Copy Markdown
Contributor

@KarstenB KarstenB commented Mar 3, 2026

When using a hardened images, such as https://hub.docker.com/hardened-images/catalog/dhi/debian-base the folder /usr/local/share doesn't exist. This causes errors such as:

tee: /usr/local/share/docker-init.sh: No such file or directory

This PR checks that the directory exists before creating the /usr/local/share/docker-init.sh script.

Copy link
Copy Markdown
Contributor

@Kaniska244 Kaniska244 left a comment

Choose a reason for hiding this comment

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

Looks fine. To be further reviewed by maintainers.

@Kaniska244 Kaniska244 requested a review from abdurriq March 4, 2026 06:31
@abdurriq abdurriq merged commit 065b4d4 into devcontainers:main Mar 4, 2026
111 checks passed
@KarstenB KarstenB deleted the fix/dind_init_script branch March 5, 2026 09:57
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.

3 participants