Sign inSign up

siddick/docker-git

By siddick

•Updated almost 11 years ago

git hosting on docker

Image
0

294

siddick/docker-git repository overview

⁠Setup git hosting on docker

docker run --name docker-git -d -v /opt/git-home:/home/git -p 2222:22 siddick/docker-git
docker exec docker-git cat admin > ~/.ssh/docker-git.pem && chmod 600 ~/.ssh/docker-git.pem

echo "Host docker-git
    User git
    HostName localhost
    IdentityFile ~/.ssh/docker-git.pem
    Port 2222" >> ~/.ssh/config
git clone docker-git:gitolite-admin.git 

Tag summary

Content type

Image

Digest

sha256:58aa8fe48…

Size

109.8 MB

Last updated

almost 11 years ago

docker pull siddick/docker-git