Skip to content

Commit

Permalink
Modified Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jkarlosb committed Jul 27, 2016
1 parent 9da9eac commit a972c35
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,20 @@ How to make the image:

How to run the container in port 2222 with two volumes, keys volumen for public keys and repos volume for git repositories:

$ docker run -d -p 2222:22 -v /Users/carlos/git-server/keys:/git-server/keys -v /Users/carlos/git-server/repos:/git-server/repos jkarlos/git-server-docker
$ docker run -d -p 2222:22 -v /home/jkarlos/git-server/keys:/git-server/keys -v /home/jkarlos/git-server/repos:/git-server/repos jkarlos/git-server-docker

How check that container works:

$ ssh git@<ip-docker-server> -p 2222 -v
$ ssh git@<ip-docker-server> -p 2222 -v

How clone a repository:

$ git clone ssh://git@<ip-docker-server>:2222/git-server/repos/myrepo.git

How generate a pair keys in client machine:

$ ssh-keygen -t rsa

How upload quickly a public key:

$ scp ~/.ssh/id_rsa.pub user@host:/home/jkarlos/git-server/keys

0 comments on commit a972c35

Please sign in to comment.