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