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

Have Questions? Post them here!
- How to docker remove a container when it exits
- Install Python on Alpine Linux - Docker
- How to Rename Docker Image with none TAG and REPOSITORY?
- Remove all stopped containers in Docker using prune command
- [Fix] Docker Error response from daemon: manifest for :latest not found: manifest unknown
- [fix] Error response from daemon: conflict unable to remove repository reference ubuntu container is using its referenced image
- [Docker] Install Python3 on Alpine Linux
- Unable to find image docker latest locally
- How to Stop/Cancel/kill docker image pull
- How to know the Docker Engine Version
- [fix] Docker: OCI runtime exec failed unable to start container process
- [Solution] Alpine Docker apt-get: not found
- Install and Run Cassandra on Docker Desktop
- Install node on Alpine Linux Docker
- How to Copy files from Docker Container to Host System
- Install the minimal Linux on Docker (only 5 mb Alpine Linux)
- How to stop and start a docker container
- Docker - Error response from daemon: You cannot remove a running container
- Open Docker Desktop from macOS Terminal
- How to check installed docker version command
- How to know the Docker Sandbox ID of a Container Network?
- [fix] docker: Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory.
- [Docker] Install Git on Alpine Linux
- Docker MySQL Compose File with Volume Example
- [fix] Docker: Alpine Linux - /bin/sh: bash: not found
- [Program] How to read three different values using Scanner in Java - Java
- Java SE 8 Update 301 available with various bug fixes and security improvements - Java
- This class should be public (android.support.v7.internal.widget.ActionBarView.HomeView) Lint Error - Android
- Path of homebrew (brew) installation in macOS Big Sur - MacOS
- Parsing CSV file using Java code example (Comma Separated File) - Java
- Java 8 Format Date and Time Examples - Java
- The Zsh Shell - Mac Tutorial - MacOS
- How to Reset Eclipse Theme to Classic - Eclipse