mitmproxy / docker-releases

🗃️ This repository has been integrated into mitmproxy/mitmproxy.
52 stars 26 forks source link

when run docker run with external volume, got chown error. #13

Closed ligangty closed 7 years ago

ligangty commented 7 years ago

When I run docker-run command as below: docker run --rm -it -v ~/.mitmproxy:/home/mitmproxy/.mitmproxy -p 8080:8080 mitmproxy/mitmproxy I got this error:

chown: /home/mitmproxy/.mitmproxy: Permission denied

I use a non-root user to run this, but seems sudo is also not working. BTW, the host ~/.mitmproxy is generated with mitmproxy command with ca files in it like below:

-rw-r--r--. 1 user user 1.3K Feb 3 14:06 mitmproxy-ca-cert.cer -rw-r--r--. 1 user user 2.5K Feb 3 14:06 mitmproxy-ca-cert.p12 -rw-r--r--. 1 user user 1.3K Feb 3 14:06 mitmproxy-ca-cert.pem -rw-r--r--. 1 user user 3.0K Feb 3 14:06 mitmproxy-ca.pem -rw-r--r--. 1 user user 770 Feb 3 14:06 mitmproxy-dhparam.pem

ligangty commented 7 years ago

seems this is a docker version problem. Can work on docker 1.12.x, but can not work on 1.10.x. Closed