Azure / Azure/iotedgedev

Permission error when trying to start devcontainer

Open
#561 0 comments 0 reactions 0 assignees View on GitHub
bug one week hack priority:high
Dominant language
Python
Stars
166
Forks
76
PR merge metrics
No merged PRs in 30d

Description

- 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.