iotedgedev icon indicating copy to clipboard operation
iotedgedev copied to clipboard

Permission error when trying to start devcontainer

Open beandrad opened this issue 2 years ago • 0 comments

  • iotedgedev Version: v3.3.4
  • Python Version: 3.9
  • Pip Version: 22.0.4
  • Development machine OS Version: macOS 12.3.1
  • IoT Edge device OS Version: GNU/Linux 11 (bullseye)
  • Docker-desktop version: 4.6.1

I'm receiving the following error when trying to start the VSCode devcontainer:

[2479 ms] Start: Run: docker inspect --type container b8e4d7b631f2
/usr/local/share/docker-init.sh: line 45: /sys/fs/cgroup/init/cgroup.procs: Permission denied

I fixed it temporarily by commenting out the lines related to cgroups in the corresponding file: https://github.com/Azure/iotedgedev/blob/0e1c4a009cd3cfb51345bbc52f3ae9c37ef7dee9/.devcontainer/library-scripts/docker-in-docker-debian.sh#L201-L209

Steps to Reproduce:

  1. Start devcontainer in VSCode

beandrad avatar May 10 '22 13:05 beandrad