dinghy-http-proxy icon indicating copy to clipboard operation
dinghy-http-proxy copied to clipboard

SSL enablement: Unable to mount volumes

Open skarred14 opened this issue 7 years ago • 3 comments
trafficstars

Hi All, I have been facing a strange issue with mounting volumes using the following command: docker run -d --restart=always -v /var/run/docker.sock:/tmp/docker.sock:ro -v ~/.dinghy/certs:/etc/nginx/certs -p 80:80 -p 443:443 -p 19322:19322/udp -e CONTAINER_NAME=http-proxy --name http-proxy codekitchen/dinghy-http-proxy. I am unable to see the files on the container. I am using docker 17.09.1-ce.mac42 ce on mac osx. Any suggestions?

skarred14 avatar Dec 20 '17 22:12 skarred14

Hi, can you provide more information? I'm not sure what you mean by "I am unable to see the files on the container". Are you trying to hit a dev site through the HTTP proxy and getting an error or blank page? Any logs or error output you have would be helpful. If you are trying to hit a dev site, any info you can provide on the site's env vars and/or docker-compose configuration would be useful as well.

codekitchen avatar Dec 27 '17 19:12 codekitchen

thanks for responding! the issue i am facing is the following. to enable ssl, i followed the instructions to run the docker proxy by mounting the volume ~/.dinghy/certs on local to the proxy container. at this point, I have created a dummy file in the above volume using touch random_file. I expected the file to be mirrored within the container. but i dont see the file random_file within the container at /etc/nginx/certs. I am not sure as to why this isnt working - i tried restarting the container as well but to no avail. hopefully this clarifies my question!

skarred14 avatar Jan 04 '18 07:01 skarred14

Oh OK, that helps a lot thanks. Unfortunately this doesn't sound like something I can probably help with, it sounds like an issue with your local docker setup not with dinghy-http-proxy. Have you had any luck trying to mount other local volumes inside a Docker container? Are you using Docker for Mac or some other way of installing Docker? I'd look at making sure your Docker setup is properly enabling you to mount host volumes from macos into the vm and thus into your docker containers.

codekitchen avatar Jan 04 '18 21:01 codekitchen