Comments (5)
OK, I see.
I suggest you to mount a directory other than a file.
-v /home/yourname/ocserv:/etc/ocserv
That way you can also modify the configuration file out of the container.
Yet better way is to use certificate method.
from docker-ocserv.
thank i got it 👍
from docker-ocserv.
You should create that file in container but not your host.
from docker-ocserv.
thx 🍰 ,I want mount ocpasswd out of docker container.
so I run script
sudo docker run --name ocserv \
--privileged \
-p 443:443 -p 443:443/udp \
-e CA_CN="VPN CA" \
-e CA_ORG="Inc." \
-e CA_DAYS=3650 \
-e SRV_CN=inner--vpn.test.com \
-e SRV_ORG="Inc." \
-e SRV_DAYS=365 \
-e NO_TEST_USER=1 \
-v /home/ubuntu/tools/tommylau_ocserv/ocpasswd:/etc/ocserv/ocpasswd \
-d tommylau/ocserv
success run.
but I run
docker exec -ti ocserv ocpasswd -c /etc/ocserv/ocpasswd -g "Route,All" tommy
I get error file '/etc/ocserv/ocpasswd' is locked.
from docker-ocserv.
-v /home/yourname/ocserv:/etc/ocserv
Still does not work
from docker-ocserv.
Related Issues (20)
- Is there a way to integrate with traefik container HOT 2
- how to enable debug modle ? HOT 2
- ocserv fails to startup HOT 1
- log ips connection to openconnect
- pls add radius support . HOT 4
- Server certificate verify failed: signer not found HOT 4
- manage bandwidth?
- DTLS handshake failed HOT 1
- how do I set group as all automatically?
- whats the default web folder for server ? HOT 5
- Running with docker user-namespace HOT 2
- not working on AWS EC2
- pls update to 0.12.5
- Updated clone of this repo
- openconnect disconnect every 5 min HOT 2
- Locking error in OpenConnect account creation
- Check user traffic
- can't use all option for group
- Suggestion: Let's merge the https://github.com/aminvakil/docker-ocserv fork here HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-ocserv.