简体   繁体   English

在 Synology NAS 上运行的 Docker 容器上使用 VPN

[英]Using VPN on Docker container running on Synology NAS

I've tried multiple Docker images all running OpenVPN, and the result is always the same:我尝试了多个运行 OpenVPN 的 Docker 镜像,结果总是一样的:

openvpn: error while loading shared libraries: liblzo2.so.2: cannot open shared object file: Permission denied

Oddly I can get one of the images to periodically run, no ryme or reason I've been able to identify there though.奇怪的是,我可以让其中一个图像定期运行,但没有任何原因或原因我能够在那里识别。

It's not the first time someone has run into this with Synology, see for example: https://github.com/haugene/docker-transmission-openvpn/discussions/2224 .这不是有人第一次使用 Synology 遇到这种情况,例如: https ://github.com/haugene/docker-transmission-openvpn/discussions/2224。 Sadly no real solutions so far though.可悲的是,到目前为止还没有真正的解决方案。

If you're using the option "Execute container using high privilege," the workaround that I found here ( https://github.com/haugene/docker-transmission-openvpn/issues/1871#issuecomment-877255193 ) seems to work for me.如果您使用“使用高权限执行容器”选项,我在此处找到的解决方法( https://github.com/haugene/docker-transmission-openvpn/issues/1871#issuecomment-877255193 )似乎适用于我。

You'll need to uncheck "Execute container using high privilege", start the container, let it fail, check "Execute container using high privilege" and start the container again.您需要取消选中“使用高权限执行容器”,启动容器,让它失败,选中“使用高权限执行容器”并再次启动容器。

This seems like a bug with Synology's implementation of the "Execute container using high privilege" option.这似乎是 Synology 实施“使用高权限执行容器”选项的错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM