Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
dohqu8Zi
· 9y ago · 0 comments
No, Docker usually drops CAP_NET_RAW within the container. But you can change that and other container technologies definitely keep CAP_NET_RAW within the container.
Comments
[–]
wrongmmmm
9y ago
Not true. CAP_NET_RAW is on by default:
https://github.com/moby/moby/blob/master/oci/defaults_linux....
Otherwise no one could ping from a container.
[–]
dohqu8Zi
OP
9y ago
Thanks for the correction.
[–]
dohqu8Zi
OP
9y ago
BTW: Depending on the configuration you can create a new namespace within Docker to gain CAP_NET_RAW since namespaces can nest.