devcontainers / devcontainers/cli

`seccomp=profile.json` path isn't relative to `devcontainer-feature.json` or `compose.yml`

Đang mở
#210 7 bình luận 0 reaction 1 người được giao Được @chrmarti nhận Xem trên GitHub
feature-request
Ngôn ngữ chính
TypeScript
Star
3k
Fork
457
Merge trung bình
13 giờ 17 phút
Pull request đã merge (30 ngày)
6

Mô tả

# How is a path to a seccomp profile file specificed?

This doesn't work when **seccomp.json** is in same folder as **devcontainer-feature.json**
```jsonc
// devcontainer-feature.json
{
"securityOpt": ["seccomp=seccomp.json"]
}
```

This doesn't work when **seccomp.json** is in same folder as **compose.yml**
```jsonc
// devcontainer.json
{
"dockerComposeFile": "compose.yml",
// rest omitted...
}
```
```yml
# compose.yml
services:
app:
security_opt:
- seccomp:seccomp.json
```

seccomp accepts a path https://docs.docker.com/engine/security/seccomp/

```
$ docker run --rm \
-it \
--security-opt seccomp=/path/to/seccomp/profile.json \
hello-world
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.