If you want to install Git the distributed Version Control System on Alpine Linux as a Docker Container, then you should choose the official alpine/git image from Docker Hub.
Docker Hub: https://hub.docker.com/r/alpine/git
Git Repo: https://github.com/alpine-docker/git
Syntax:
docker pull alpine/git
Example:% docker pull alpine/git
Using default tag: latest
latest: Pulling from alpine/git
9b18e9b68314: Already exists
f73995dadbe1: Pull complete
fe98fba3ad13: Pull complete
Digest: sha256:7b9c96bea8268579e925b17170ae208788e90d508ec334421384913ba61cd610
Status: Downloaded newer image for alpine/git:latest
docker.io/alpine/git:latest
Usage Example:
% docker run -ti --rm -v ${HOME}:/root -v $(pwd):/git alpine/git clone https://github.com/alpine-docker/git.git

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!