From a972c35bfef9dc7f112677db393025b3aa542e22 Mon Sep 17 00:00:00 2001 From: Akuario Date: Thu, 28 Jul 2016 01:00:27 +0200 Subject: [PATCH] Modified Readme --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d9a1943..5bb97a6 100644 --- a/README.md +++ b/README.md @@ -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@ -p 2222 -v + $ ssh git@ -p 2222 -v How clone a repository: $ git clone ssh://git@: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