git-server-docker

Git server over SSH

GPL-3.0 License

Stars
55

Git Server Docker

Simple Docker image containing a Git server accessible via SSH.

Image source at: https://github.com/rockstorm101/git-server-docker.

Basic Usage

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.

Security Notice

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.

Other Features

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

Supported Tags and Variants

See Variants and Tagging Scheme.

License

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.