Skip to content
This repository has been archived by the owner on Jun 1, 2018. It is now read-only.

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

Closed
ligangty opened this issue Feb 6, 2017 · 1 comment
Closed

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

ligangty opened this issue Feb 6, 2017 · 1 comment

Comments

@ligangty
Copy link

ligangty commented Feb 6, 2017

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
Copy link
Author

ligangty commented Feb 7, 2017

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

@ligangty ligangty closed this as completed Feb 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant