简体   繁体   中英

Docker cloning - permission denied

Ok I'm fairly new to UBUNTU but was just following some "simple steps", you know the sort that someone always claims will work out the box yet never ever does?

Anyway here's what I get:

# sudo docker run -i -v $PWD:/home/yyyy/work aaaa/bbbb git clone https://github.com/xxxx/yyyy.git 

Cloning into 'xxxx'...
/home/yyyy/work/yyyy/.git: Permission denied

What do i do?

docker run ... aaaa/bbb git means running the aaaa/bbbb image (based probably on Ubuntu)

It depends on how that image was built (its Dockerfile): it the WORKDIR was set to /home/yyyy/work , but USER was set to another user, there would be a permission issue

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM