mirror of
https://github.com/zyclonite/zerotier-docker.git
synced 2025-06-20 17:47:41 +02:00
add net_raw cap for bridge mode, seems to be not a default for podman on fedora
This commit is contained in:
parent
8579c1fde0
commit
c3ceacd36a
@ -36,7 +36,7 @@ or create an empty file with the network as name
|
|||||||
It is the implementation of the local network bridge [paper](https://zerotier.atlassian.net/wiki/spaces/SD/pages/193134593/Bridge+your+ZeroTier+and+local+network+with+a+RaspberryPi)
|
It is the implementation of the local network bridge [paper](https://zerotier.atlassian.net/wiki/spaces/SD/pages/193134593/Bridge+your+ZeroTier+and+local+network+with+a+RaspberryPi)
|
||||||
|
|
||||||
docker run --name zerotier-one --device=/dev/net/tun \
|
docker run --name zerotier-one --device=/dev/net/tun \
|
||||||
--cap-add=NET_ADMIN --cap-add=SYS_ADMIN \
|
--cap-add=NET_ADMIN --cap-add=NET_RAW --cap-add=SYS_ADMIN \
|
||||||
-v /var/lib/zerotier-one:/var/lib/zerotier-one zyclonite/zerotier:bridge
|
-v /var/lib/zerotier-one:/var/lib/zerotier-one zyclonite/zerotier:bridge
|
||||||
|
|
||||||
That will start the zero-one, establish connection and build the bridge once the `zt` interface is up.
|
That will start the zero-one, establish connection and build the bridge once the `zt` interface is up.
|
||||||
|
@ -22,7 +22,7 @@ spec:
|
|||||||
- name: vol
|
- name: vol
|
||||||
subPath: config
|
subPath: config
|
||||||
mountPath: /mnt
|
mountPath: /mnt
|
||||||
|
|
||||||
containers:
|
containers:
|
||||||
- name: zerotier
|
- name: zerotier
|
||||||
image: zyclonite/zerotier:bridge
|
image: zyclonite/zerotier:bridge
|
||||||
@ -40,13 +40,14 @@ spec:
|
|||||||
- name: tun
|
- name: tun
|
||||||
readOnly: true
|
readOnly: true
|
||||||
mountPath: /dev/net/tun
|
mountPath: /dev/net/tun
|
||||||
|
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
|
- NET_RAW
|
||||||
- SYS_ADMIN
|
- SYS_ADMIN
|
||||||
|
|
||||||
dnsPolicy: "None"
|
dnsPolicy: "None"
|
||||||
dnsConfig:
|
dnsConfig:
|
||||||
nameservers:
|
nameservers:
|
||||||
@ -60,4 +61,4 @@ spec:
|
|||||||
- name: tun
|
- name: tun
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /dev/net/tun
|
path: /dev/net/tun
|
||||||
type: ''
|
type: ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user