I don’t know what you mean by the first sentence but I did try the commands you suggested.
I am SSHing into the Synology DSM to enter these commands.
I first cleaned up all of the Containers except for the Twingate Connector Container and the ubuntu Container in which I am running, or rather trying to start, the Tweingate client. So I started with command sudo docker ps
followed by sudo docker run -dit --device /dev/net/tun --cap-add NET_ADMIN ubuntu
and then sudo docker inspect ubuntu
. Looking thru the results of the inspect "Devices": null,
.
roger@DS-Master:~$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9d65df1331a3 twingate/connector:1 “/connectord” 25 hours ago Exited (0) 2 minutes ago twingate-Plymouth-Connector-1
3abebd0789f9 ubuntu:latest “/bin/bash” 26 hours ago Up About an hour ubuntu
roger@DS-Master:~$ sudo docker run -dit --device /dev/net/tun --cap-add NET_ADMIN ubuntu
a490c23c112c4ac132c35a3e624b30eecbffedccdc4f7e04278f8e20634b7443
roger@DS-Master:~$ sudo docker inspect ubuntu
[
{
“Id”: “3abebd0789f9cbd57a73189783b3d8b6569706039aaf6e35c864b39d7438d0a9”,
“Created”: “2023-02-23T22:15:54.838615953Z”,
“Path”: “/bin/bash”,
“Args”: ,
“State”: {
“Status”: “running”,
“Running”: true,
“Paused”: false,
“Restarting”: false,
“OOMKilled”: false,
“Dead”: false,
“Pid”: 13941,
“ExitCode”: 0,
“Error”: “”,
“StartedAt”: “2023-02-24T23:18:04.035616729Z”,
“FinishedAt”: “2023-02-24T23:14:27.767774995Z”,
“StartedTs”: 1677280684,
“FinishedTs”: 1677280467
},
“Image”: “sha256:58db3edaf2be6e80f628796355b1bdeaf8bea1692b402f48b7e7b8d1ff100b02”,
“ResolvConfPath”: “/volume1/@docker/containers/3abebd0789f9cbd57a73189783b3d8b6569706039aaf6e35c864b39d7438d0a9/resolv.conf”,
“HostnamePath”: “/volume1/@docker/containers/3abebd0789f9cbd57a73189783b3d8b6569706039aaf6e35c864b39d7438d0a9/hostname”,
“HostsPath”: “/volume1/@docker/containers/3abebd0789f9cbd57a73189783b3d8b6569706039aaf6e35c864b39d7438d0a9/hosts”,
“LogPath”: “/volume1/@docker/containers/3abebd0789f9cbd57a73189783b3d8b6569706039aaf6e35c864b39d7438d0a9/log.db”,
“Name”: “/ubuntu”,
“RestartCount”: 0,
“Driver”: “btrfs”,
“Platform”: “linux”,
“MountLabel”: “”,
“ProcessLabel”: “”,
“AppArmorProfile”: “docker-default”,
“ExecIDs”: null,
“HostConfig”: {
“Binds”: ,
“ContainerIDFile”: “”,
“LogConfig”: {
“Type”: “db”,
“Config”: {}
},
“NetworkMode”: “bridge”,
“PortBindings”: {},
“RestartPolicy”: {
“Name”: “always”,
“MaximumRetryCount”: 0
},
“AutoRemove”: false,
“VolumeDriver”: “”,
“VolumesFrom”: null,
“CapAdd”: null,
“CapDrop”: null,
“CgroupnsMode”: “host”,
“Dns”: null,
“DnsOptions”: null,
“DnsSearch”: null,
“ExtraHosts”: null,
“GroupAdd”: null,
“IpcMode”: “private”,
“Cgroup”: “”,
“Links”: null,
“OomScoreAdj”: 0,
“PidMode”: “”,
“Privileged”: false,
“PublishAllPorts”: false,
“ReadonlyRootfs”: false,
“SecurityOpt”: null,
“UTSMode”: “”,
“UsernsMode”: “”,
“ShmSize”: 67108864,
“Runtime”: “runc”,
“Env”: [
“PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”
],
“ConsoleSize”: [
0,
0
],
“Isolation”: “”,
“CpuShares”: 50,
“Memory”: 0,
“NanoCpus”: 0,
“CgroupParent”: “”,
“BlkioWeight”: 0,
“BlkioWeightDevice”: null,
“BlkioDeviceReadBps”: null,
“BlkioDeviceWriteBps”: null,
“BlkioDeviceReadIOps”: null,
“BlkioDeviceWriteIOps”: null,
“CpuPeriod”: 0,
“CpuQuota”: 0,
“CpuRealtimePeriod”: 0,
“CpuRealtimeRuntime”: 0,
“CpusetCpus”: “”,
“CpusetMems”: “”,
“Devices”: null,
“DeviceCgroupRules”: null,
“DeviceRequests”: null,
“KernelMemory”: 0,
“KernelMemoryTCP”: 0,
“MemoryReservation”: 0,
“MemorySwap”: 0,
“MemorySwappiness”: null,
“OomKillDisable”: false,
“PidsLimit”: null,
“Ulimits”: null,
“CpuCount”: 0,
“CpuPercent”: 0,
“IOMaximumIOps”: 0,
“IOMaximumBandwidth”: 0,
“MaskedPaths”: [
“/proc/asound”,
“/proc/acpi”,
“/proc/kcore”,
“/proc/keys”,
“/proc/latency_stats”,
“/proc/timer_list”,
“/proc/timer_stats”,
“/proc/sched_debug”,
“/proc/scsi”,
“/sys/firmware”
],
“ReadonlyPaths”: [
“/proc/bus”,
“/proc/fs”,
“/proc/irq”,
“/proc/sys”,
“/proc/sysrq-trigger”
]
},
“GraphDriver”: {
“Data”: null,
“Name”: “btrfs”
},
“Mounts”: ,
“Config”: {
“Hostname”: “ubuntu1”,
“Domainname”: “”,
“User”: “”,
“AttachStdin”: false,
“AttachStdout”: false,
“AttachStderr”: false,
“Tty”: true,
“OpenStdin”: true,
“StdinOnce”: false,
“Env”: [
“PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”
],
“Cmd”: [
“/bin/bash”
],
“Image”: “ubuntu:latest”,
“Volumes”: null,
“WorkingDir”: “”,
“Entrypoint”: null,
“OnBuild”: null,
“Labels”: {
“org.opencontainers.image.ref.name”: “ubuntu”,
“org.opencontainers.image.version”: “22.04”
},
“DDSM”: false
},
“NetworkSettings”: {
“Bridge”: “”,
“SandboxID”: “615ddab494412b6da82dcf4aa692b9ec83169e66a3c0453c3ff0d4d8f687f3e5”,
“HairpinMode”: false,
“LinkLocalIPv6Address”: “”,
“LinkLocalIPv6PrefixLen”: 0,
“Ports”: {},
“SandboxKey”: “/var/run/docker/netns/615ddab49441”,
“SecondaryIPAddresses”: null,
“SecondaryIPv6Addresses”: null,
“EndpointID”: “bc4af9fe4b8e50ecca4e257c3ca90a7282cac3f4149d0df7a1884419d46ca0d6”,
“Gateway”: “172.17.0.1”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“IPAddress”: “172.17.0.2”,
“IPPrefixLen”: 16,
“IPv6Gateway”: “”,
“MacAddress”: “02:42:ac:11:00:02”,
“Networks”: {
“bridge”: {
“IPAMConfig”: null,
“Links”: null,
“Aliases”: null,
“NetworkID”: “7697591c4fd3ad58e07634a386fab97a7a2b55c6e90e40456c6afbb8604c7c4e”,
“EndpointID”: “bc4af9fe4b8e50ecca4e257c3ca90a7282cac3f4149d0df7a1884419d46ca0d6”,
“Gateway”: “172.17.0.1”,
“IPAddress”: “172.17.0.2”,
“IPPrefixLen”: 16,
“IPv6Gateway”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“MacAddress”: “02:42:ac:11:00:02”,
“DriverOpts”: null
}
}
}
}
]
roger@DS-Master:~$
Hopefully this will provide some insight.