Closed sheershoff closed 9 years ago
You need to have the repo storage mapped to somewhere outside the Docker instance, otherwise you'll lose your repos next time the Docker image starts.
If /var/repo is mapped, then check the permissions on the folder it is mapped to. It will need to have the same ownership and group as the UID / GID of the user inside the Docker container which means a UID / GID of 2000 / 2000.
You should be able to set the ownership of the folder outside the container with something like chown 2000:2000 /path/to/repo
.
Closing this as there has been no response.
Thank you, this worked.
Thank you @hach-que , it worked for me as well.
Initialization Error
Pull of "DC" failed: Command failed with error #128! COMMAND git init --bare -- '/var/repo/DC' STDOUT (empty) STDERR fatal: cannot mkdir /var/repo/DC: Permission denied
Not sure where one should correct the permissions. If I manually do
git init --bare '/var/repo/DC'
it then says it can't write to.git/hooks
. What should I do? I'm new to docker.