Enhanced README.md (related to #4). Changed mantainer name and shell message

This commit is contained in:
Akuario 2017-05-23 21:57:26 +02:00
parent 0ccac8f812
commit 873dae4722
3 changed files with 8 additions and 7 deletions

View file

@ -1,6 +1,6 @@
FROM alpine:3.4
MAINTAINER José Carlos Bernárdez "carlos@z4studios.com"
MAINTAINER Carlos Bernárdez "carlos@z4studios.com"
# "--no-cache" is new in Alpine 3.3 and it avoid using
# "--update + rm -rf /var/cache/apk/*" (to remove cache)

View file

@ -11,16 +11,17 @@ How to run the container in port 2222 with two volumes, keys volume for public k
How to use a public key:
From host:
$ cp ~/.ssh/id_rsa.pub ~/git-server/keys
From remote:
$ scp ~/.ssh/id_rsa.pub user@host:~/git-server/keys
Copy them to keys folder:
- From host: $ cp ~/.ssh/id_rsa.pub ~/git-server/keys
- From remote: $ scp ~/.ssh/id_rsa.pub user@host:~/git-server/keys
You need restart the container when keys are updated:
$ docker restart <container-id>
How to check that container works (you must to have a key):
$ ssh git@<ip-docker-server> -p 2222
...
Welcome to jkarlos/git-server-docker!
Welcome to git-server-docker!
You've successfully authenticated, but I do not
provide interactive shell access.
...

View file

@ -1,5 +1,5 @@
#!/bin/sh
printf '%s\n' "Welcome to jkarlos/git-server-docker!"
printf '%s\n' "Welcome to git-server-docker!"
printf '%s\n' "You've successfully authenticated, but I do not"
printf '%s\n' "provide interactive shell access."
exit 128