mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 18:15:50 +03:00
[GH-ISSUE #314] 自定义的vpn.env无效 #292
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alsomail on GitHub (Oct 23, 2022).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/314
VPN_IPSEC_PSK=your_ipsec_pre_shared_key VPN_USER=your_vpn_username VPN_PASSWORD=your_vpn_passworddocker run \ --name ipsec-vpn-server \ --env-file /vpn/vpn.env \ --restart=always \ -v ikev2-vpn-data:/etc/ipsec.d \ -v /lib/modules:/lib/modules:ro \ -p 500:500/udp \ -p 4500:4500/udp \ -d --privileged \ hwdsl2/ipsec-vpn-server感觉是没有读取到vpn.env,但是如果直接复制vpn.env模板,又会检测异常
'docker: poorly formatted environment: variable 'te: All the variables to this image are optional.' contains whitespaces.
See 'docker run --help'.'
@alsomail commented on GitHub (Oct 23, 2022):
下午多试几次可以了……