bwits/docker-git-alpine

By bwits

Updated almost 8 years ago

a useful simple git container running in alpine linux

Image
2

10K+

docker-git-alpine

A useful simple git container running in alpine linux, especially for tiny linux distro, such as RancherOS, which don't have package manager.

Notes: only useful to clone the git codes with https url.

usage

Add this to your .bashrc

alias git="docker run -ti --rm -v ${HOME}:/root -v $(pwd):/git bwits/docker-git-alpine"

for example, if you need clone this repository, with the alias you just set, you can run it as local command

git clone https://github.com/BWITS/docker-git-alpine.git
The Protocols

Supports git, http/https and ssh protocols.

Refer: Git on the Server - The Protocols

Docker Pull Command

docker pull bwits/docker-git-alpine