Skip to content

Commit 065b4d4

Browse files
authored
fix(docker-in-docker): create /usr/local/share directory if it doesn't exist before writing … (#1594)
Create /usr/local/share directory if it doesn't exist before writing docker-init.sh
1 parent 03ea24c commit 065b4d4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/docker-in-docker/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "docker-in-docker",
3-
"version": "2.16.0",
3+
"version": "2.16.1",
44
"name": "Docker (Docker-in-Docker)",
55
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/docker-in-docker",
66
"description": "Create child containers *inside* a container, independent from the host's docker instance. Installs Docker extension in the container along with needed CLIs.",

src/docker-in-docker/install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,10 @@ if [ "$DISABLE_IP6_TABLES" == true ]; then
861861
fi
862862
fi
863863

864+
if [ ! -d /usr/local/share ]; then
865+
mkdir -p /usr/local/share
866+
fi
867+
864868
tee /usr/local/share/docker-init.sh > /dev/null \
865869
<< EOF
866870
#!/bin/sh

0 commit comments

Comments
 (0)