docker container run -it --rm --security-opt seccomp="default.json" zenika/alpine-chrome
Expected behavior
WSL2 result (this error has nothing to do with permissions)
[1220/115314.488582:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory.
Ubuntu result (not enough permissions)
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
[1220/115448.497254:FATAL:zygote_host_impl_linux.cc(201)] Check failed: . : Operation not permitted (1)
With seccomp default file:
WSL (not enough permissions)
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
[1220/120155.237863:FATAL:zygote_host_impl_linux.cc(201)] Check failed: . : Operation not permitted (1)
Ubuntu result (the same as before)
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
[1220/115448.497254:FATAL:zygote_host_impl_linux.cc(201)] Check failed: . : Operation not permitted (1)
docker version
WSL
===========
Client: Docker Engine - Community
Cloud integration: v1.0.35+desktop.5
Version: 24.0.7
API version: 1.43
Go version: go1.20.10
Git commit: afdd53b
Built: Thu Oct 26 09:08:17 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Desktop
Engine:
Version: 24.0.7
API version: 1.43 (minimum version 1.12)
Go version: go1.20.10
Git commit: 311b9ff
Built: Thu Oct 26 09:08:02 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.25
GitCommit: d8f198a4ed8892c764191ef7b3b06d8a2eeb5c7f
runc:
Version: 1.1.10
GitCommit: v1.1.10-0-g18a0cb0
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Ubuntu
===================
Client: Docker Engine - Community
Version: 24.0.7
API version: 1.43
Go version: go1.20.10
Git commit: afdd53b
Built: Thu Oct 26 09:07:41 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.7
API version: 1.43 (minimum version 1.12)
Go version: go1.20.10
Git commit: 311b9ff
Built: Thu Oct 26 09:07:41 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.26
GitCommit: 3dd1e886e55dd695541fdcd67420c2888645a495
runc:
Version: 1.1.10
GitCommit: v1.1.10-0-g18a0cb0
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Description
The default seccomp profile on windows is more permissive than the version on linux.
I cannot remember to have change seccomp on my windows installation.
Reproduce
(This repro is not necessary, because
docker info
says it all)Run the following command on windows (with linux containers) and on a linux (e.g. ubuntu 22.04)
docker container run -it --rm zenika/alpine-chrome
Then get the default seccomp from docker and run with it on both OS
curl https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json > default.json
docker container run -it --rm --security-opt seccomp="default.json" zenika/alpine-chrome
Expected behavior
With seccomp default file:
WSL (not enough permissions)
Ubuntu result (the same as before)
docker version
docker info
WSL reports non default seccomp
Diagnostics ID
50C79979-D57A-4536-B8FF-6C4C853181AA/20231220121249
Additional Info
No response