Skip to content

Commit 873dae4

Browse files
committed
Enhanced README.md (related to #4). Changed mantainer name and shell message
1 parent 0ccac8f commit 873dae4

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM alpine:3.4
22

3-
MAINTAINER José Carlos Bernárdez "carlos@z4studios.com"
3+
MAINTAINER Carlos Bernárdez "carlos@z4studios.com"
44

55
# "--no-cache" is new in Alpine 3.3 and it avoid using
66
# "--update + rm -rf /var/cache/apk/*" (to remove cache)

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@ How to run the container in port 2222 with two volumes, keys volume for public k
1111

1212
How to use a public key:
1313

14-
From host:
15-
$ cp ~/.ssh/id_rsa.pub ~/git-server/keys
16-
From remote:
17-
$ scp ~/.ssh/id_rsa.pub user@host:~/git-server/keys
14+
Copy them to keys folder:
15+
- From host: $ cp ~/.ssh/id_rsa.pub ~/git-server/keys
16+
- From remote: $ scp ~/.ssh/id_rsa.pub user@host:~/git-server/keys
17+
You need restart the container when keys are updated:
18+
$ docker restart <container-id>
1819

1920
How to check that container works (you must to have a key):
2021

2122
$ ssh git@<ip-docker-server> -p 2222
2223
...
23-
Welcome to jkarlos/git-server-docker!
24+
Welcome to git-server-docker!
2425
You've successfully authenticated, but I do not
2526
provide interactive shell access.
2627
...
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
printf '%s\n' "Welcome to jkarlos/git-server-docker!"
2+
printf '%s\n' "Welcome to git-server-docker!"
33
printf '%s\n' "You've successfully authenticated, but I do not"
44
printf '%s\n' "provide interactive shell access."
55
exit 128

0 commit comments

Comments
 (0)