Git Product home page Git Product logo

Comments (5)

TommyLau avatar TommyLau commented on August 23, 2024 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.

hetz avatar hetz commented on August 23, 2024 1

thank i got it 👍

from docker-ocserv.

TommyLau avatar TommyLau commented on August 23, 2024

You should create that file in container but not your host.

from docker-ocserv.

hetz avatar hetz commented on August 23, 2024

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.

mamirpanah avatar mamirpanah commented on August 23, 2024

-v /home/yourname/ocserv:/etc/ocserv
Still does not work

from docker-ocserv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.