Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
devcontainer-features
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazydevelop-devcontainer-temp
devcontainer-features
Commits
65fb90b7
Unverified
Commit
65fb90b7
authored
Jan 19, 2024
by
Kai Groner
Committed by
GitHub
Jan 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Docker-outside-of-docker] Increase backlog depth for socat proxy (#789) (#790)
Co-authored-by:
Eljo George
<
eljog@github.com
>
parent
8a63fabb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
devcontainer-feature.json
src/docker-outside-of-docker/devcontainer-feature.json
+1
-1
install.sh
src/docker-outside-of-docker/install.sh
+1
-1
No files found.
src/docker-outside-of-docker/devcontainer-feature.json
View file @
65fb90b7
{
"id"
:
"docker-outside-of-docker"
,
"version"
:
"1.3.
1
"
,
"version"
:
"1.3.
2
"
,
"name"
:
"Docker (docker-outside-of-docker)"
,
"documentationURL"
:
"https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker"
,
"description"
:
"Re-use the host docker socket, adding the Docker CLI to a container. Feature invokes a script to enable using a forwarded Docker socket within a container to run Docker commands."
,
...
...
src/docker-outside-of-docker/install.sh
View file @
65fb90b7
...
...
@@ -329,7 +329,7 @@ if [ "${ENABLE_NONROOT_DOCKER}" = "true" ] && [ "${SOURCE_SOCKET}" != "${TARGET_
log "Enabling socket proxy."
log "Proxying
${
SOURCE_SOCKET
}
to
${
TARGET_SOCKET
}
for vscode"
sudoIf rm -rf
${
TARGET_SOCKET
}
(sudoIf socat UNIX-LISTEN:
${
TARGET_SOCKET
}
,fork,mode=660,user=
${
USERNAME
}
UNIX-CONNECT:
${
SOURCE_SOCKET
}
2>&1 | sudoIf tee -a \
${
SOCAT_LOG
}
> /dev/null & echo "\
$!
" | sudoIf tee \
${
SOCAT_PID
}
> /dev/null)
(sudoIf socat UNIX-LISTEN:
${
TARGET_SOCKET
}
,fork,mode=660,user=
${
USERNAME
}
,backlog=128
UNIX-CONNECT:
${
SOURCE_SOCKET
}
2>&1 | sudoIf tee -a \
${
SOCAT_LOG
}
> /dev/null & echo "\
$!
" | sudoIf tee \
${
SOCAT_PID
}
> /dev/null)
else
log "Socket proxy already running."
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment