mirror of
https://github.com/nicolabs/git-server-docker.git
synced 2025-09-05 06:36:38 +02:00
Enhanced README.md (related to #4). Changed mantainer name and shell message
This commit is contained in:
parent
0ccac8f812
commit
873dae4722
|
@ -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)
|
||||
|
|
11
README.md
11
README.md
|
@ -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.
|
||||
...
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue