google / google/gvisor

bwrap --unshare-net fails with "loopback: Failed RTM_NEWADDR"

Open
#13,438 4 comments 2 reactions 0 assignees View on GitHub
type: bug
Dominant language
Go
Stars
19.3k
Forks
2k
Avg merge
3d 5h
Merged PRs (30d)
264

Description

### Description

bwrap --unshare-net fails with "loopback: Failed RTM_NEWADDR".

This makes it impossible to create network-isolated sandboxes inside a gVisor with stock bubblewrap, including running coding agents that do that, so it needs to be supported.

### Steps to reproduce

Inside gVisor running the debian:stable container image, run `bwrap --ro-bind / / --unshare-net /bin/true`

### runsc version

```shell
$ runsc --version
runsc version release-20260608.0
spec: 1.2.1
```

### docker version (if using docker)

```shell

```

### uname

_No response_

### kubectl (if using Kubernetes)

```shell

```

### repo state (if built from source)

_No response_

### runsc debug logs (if available)

```shell

```

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.