Skip to content

Instantly share code, notes, and snippets.

@Morendil
Created April 26, 2016 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Morendil/45eddaf09a8f2047cd1c6c1beb88348c to your computer and use it in GitHub Desktop.
Save Morendil/45eddaf09a8f2047cd1c6c1beb88348c to your computer and use it in GitHub Desktop.
mkdir docker-alpine-bug
cd docker-alpine-bug
git init .
echo "Bug" > README
git add .
git commit -m "Bug"
git checkout -b somewhere
echo -e "One\nTwo\nThree" > README
git commit -am "Bug"
git checkout master
docker run -it -v $(pwd):/app envygeeks/alpine cat /app/README
# Expected result: Bug
# Actual result: One
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment