Rafael Santos Blog

A collection of tech articles I have been writting over the years for my own future reference.


Project maintained by rafacandev Hosted on GitHub Pages — Theme by mattgraham

Git no Docker

Execute o git em um contêiner Docker com o alpine/git.

alias g='docker run -ti --rm \
  -u$(id -u):$(id -g) \
  -v /etc/passwd:/etc/passwd -v /etc/group:/etc/group \
  -v LOCAL_DIR_FOR_CONFIG:/home/${USER} \
  -v $(pwd):/git alpine/git'

Passo a Passo