Skip to content

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

Merged
Abdurrahmaan Iqbal (abdurriq) merged 1 commit into
devcontainers: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
Abdurrahmaan Iqbal (abdurriq) merged 1 commit into
devcontainers:mainfrom
KarstenB:fix/dind_init_script

Conversation

@KarstenB

Copy link
Copy Markdown
Contributor

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.

@Kaniska244 Kaniska (Kaniska244) left a comment

Copy link
Copy Markdown
Contributor

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.

@abdurriq
Abdurrahmaan Iqbal (abdurriq) merged commit 065b4d4 into devcontainers:main Mar 4, 2026
111 checks passed
@KarstenB
Karsten Becker (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