wojas / docker-mac-network

Access your Docker for Mac's internal networks from your macOS host machine
MIT License
216 stars 72 forks source link

Missing docker-for-mac.ovpn #9

Open partizanos opened 7 years ago

partizanos commented 7 years ago

Hello I am not sure where docker-for-mac.ovpn file is generated. Is there any step/configuration I am missing?

wojas commented 7 years ago

It will be generated in the root folder of this repository. Note that this may take about 30 seconds, as it needs to generate keys.

If this does not work, please check the output of docker-compose logs for any errors.

rfer commented 6 years ago

I'm facing a similar issue. I got this working before, but "suddenly" I started to get the following:

openvpn_1  | WARNING!!!
openvpn_1  |
openvpn_1  | You are about to remove the EASYRSA_PKI at: /etc/openvpn/pki
openvpn_1  | and initialize a fresh PKI here.
openvpn_1  |
openvpn_1  | Type the word 'yes' to continue, or any other input to abort.
openvpn_1  |   Confirm removal:
openvpn_1  | Aborting without confirmation.
dockermacnetwork_openvpn_1 exited with code 9

openvpn_1  | *** REGENERATING ALL CONFIGS ***

Any hints on what this might be?

wojas commented 6 years ago

@rfer I'm not sure about the confirmation, but the configs will be regenerated if docker-for-mac.ovpn is missing.

You can manually delete config/*, which will at least work around the confirmation error.

I guess helpers/run.sh should delete those files. It looks like I commented out rm -rf /etc/openvpn/*, but I don't remember why.

rfer commented 6 years ago

@wojas Yeah, eventually I tried removing the commented line and it worked. Was about to ask you why it was commented, as I don't see any harm with it.