You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a process under systemd, only some env variables are passed into the process, such as $HOME, $SHELL, $USER - that's the default systemd behavior.
Docker-desktop now, is, according to documentation, only passing the ssh-agent to containers if the SSH_AUTH_SOCK is available. Because of the filtered environment, this doesn't work when running via systemd (ie. via systemctl --user start docker-desktop).
Please change the docker-desktop service unit to allow this env variable to be passed to docker-desktop.
Example:
[Service]
PassEnvironment=SSH_AUTH_SOCK
Thank you!
Reproduce
run docker desktop via systemctl --user start docker-desktop
run a container with the following volume mounted: -v /run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock
socket wont be available inside the container.
Expected behavior
Socket of ssh-agent running on host should've been passed to the container.
Description
When running a process under systemd, only some env variables are passed into the process, such as
$HOME
,$SHELL
,$USER
- that's the default systemd behavior.Docker-desktop now, is, according to documentation, only passing the ssh-agent to containers if the
SSH_AUTH_SOCK
is available. Because of the filtered environment, this doesn't work when running via systemd (ie. viasystemctl --user start docker-desktop
).Please change the docker-desktop service unit to allow this env variable to be passed to docker-desktop.
Example:
Thank you!
Reproduce
systemctl --user start docker-desktop
-v /run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock
Expected behavior
Socket of ssh-agent running on host should've been passed to the container.
docker version
Client: Docker Engine - Community Cloud integration: v1.0.35+desktop.13 Version: 26.1.4 API version: 1.45 Go version: go1.21.11 Git commit: 5650f9b Built: Wed Jun 5 11:29:22 2024 OS/Arch: linux/amd64 Context: desktop-linux Server: Docker Desktop 4.30.0 (149282) Engine: Version: 26.1.1 API version: 1.45 (minimum version 1.24) Go version: go1.21.9 Git commit: ac2de55 Built: Tue Apr 30 11:48:28 2024 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.31 GitCommit: e377cd56a71523140ca6ae87e30244719194a521 runc: Version: 1.1.12 GitCommit: v1.1.12-0-g51d5e94 docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
CE8AFCC7-C832-486B-B16B-D2D5A224E204/20240607150826
Additional Info
No response
The text was updated successfully, but these errors were encountered: