Docker Git tags¶ To get the current git commit SHA use git rev-parse HEAD. You can also use the shorter version with echo $(git log -1 --pretty=%h). Network¶ 172.17.0.1 is the ip address to your computer from within the docker container.