commit cdae13e481b21630dddaae4cd9fe280aa55f2d50 parent af446d2633030c76b30db0c256108a4ca370b1de Author: Carlos Bernárdez <jkarlos.b@gmail.com> Date: Wed, 27 Jul 2016 21:14:12 +0200 Update README.md Diffstat:
M | README.md | | | 28 | ++++++++++++++++++++++++++-- |
1 file changed, 26 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md @@ -1,2 +1,26 @@ -# git-docker -Git Server in Docker +# git-server-docker +Git Server in Docker with Alpine Linux + +### Basic Usage + +How to make the image: + + $ docker build -t git-server-docker . + +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 git-server-docker + +How check that container works: + + $ 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 + + + + + +