Simple Docker image containing a Git server accessible via SSH.
Image source at: https://github.com/rockstorm101/git-server-docker.
docker run -v git-repositories:/srv/git -p 2222:22 rockstorm/git-server
Your server should be accessible on port 2222 via:
git clone ssh://git@localhost:2222/srv/git/your-repo.git
The default password for the git user is 12345
.
Exposing this server to the internet has security implications. This image's configuration is not secure by default. Please read the security recommendations at the source README carefully.
The image allows several customization features which are detailed in the source README like:
- Setup custom passwords
- Use SSH public keys
- Setup custom host SSH keys
- Enable Git URLs without an absolute path
- Disable git user interactive login
- Set git user UID and GID
See Variants and Tagging Scheme.
View license information for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.