# non-root Docker

<table border="1" id="bkmrk-docker-daemon-%23-%2Fetc" style="border-collapse: collapse; width: 100%; height: 526.6px;"><colgroup><col style="width: 15.733%;"></col><col style="width: 15.3808%;"></col><col style="width: 68.8862%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="height: 29.8px;">  
</td><td style="height: 29.8px;">  
</td><td style="height: 29.8px;">  
</td></tr><tr style="height: 123.8px;"><td style="height: 123.8px;">docker daemon</td><td style="height: 123.8px;">  
</td><td style="height: 123.8px;">```
# /etc/docker/daemon.json
{
  "userns-remap": "docker"
}
```

</td></tr><tr style="height: 253.8px;"><td style="height: 253.8px;">sub uid/gid maps</td><td style="height: 253.8px;">  
</td><td style="height: 253.8px;">```
#/etc/subuid
root:300000:65536
ubuntu:301000:65536
docker:231072:65536

```

```
#/etc/subgid
root:300000:65536
docker:231072:65536

```

</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">Networks</td><td style="height: 29.8px;">admin</td><td style="height: 29.8px;">```
docker network add --subnet 172.22.22.0/24
```

</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">  
</td><td style="height: 29.8px;">proxy</td><td style="height: 29.8px;">```
docker network add --subnet 172.22.20.0/24
```

</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">  
</td><td style="height: 29.8px;">  
</td><td style="height: 29.8px;">  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">  
</td><td style="height: 29.8px;">  
</td><td style="height: 29.8px;">  
</td></tr></tbody></table>