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
From microsoft/vscode-dev-containers#1517. It appears that feature entrypoints are run as remoteUser instead of the containerUser as expected. In the repro below, commenting out remoteUser causes things to function - the only reason sudo would get tripped is if the script is not being run as root.
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
But expected docker to be up and running in the container.
Docker container log:
Container started
/usr/local/share/docker-init.sh: 65: /usr/local/share/docker-init.sh: sudo: not found
Docker version output in dev container:
Client:
Version: 20.10.17+azure-1
API version: 1.41
Go version: go1.17.11
Git commit: 100c70180fde3601def79a59cc3e996aa553c9b9
Built: Mon Jun 6 21:36:39 UTC 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Fixed in Remote-Containers 0.241.2-pre-release and Dev Containers CLI 0.7.1. The fix doesn't cover all cases as it is difficult to get at the user before we switch to root for the features install. Continuing in #78.
From microsoft/vscode-dev-containers#1517. It appears that feature entrypoints are run as
remoteUser
instead of the containerUser as expected. In the repro below, commenting outremoteUser
causes things to function - the only reason sudo would get tripped is if the script is not being run as root.//cc @joshspicer @edgonmsft @jkeech @chrmarti @bamurtaugh @harrywithers
Steps to Reproduce:
FROM node:16.14.0
docker ps
in the dev containerResult:
But expected docker to be up and running in the container.
Docker container log:
Docker version output in dev container:
Docker version output locally
Example repository:
https://github.com/harrywithers/broken-dind
Seemed to be working fine a week or so ago, I've got a few projects using this setup and all of them now fail to start docker.
Anyone know how to fix this? Thanks in advance!
The text was updated successfully, but these errors were encountered: