Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Changes
Page history
Updated Developer Guide: Installing and using Docker (markdown)
authored
Jan 31, 2019
by
Rich Turner
Show whitespace changes
Inline
Side-by-side
Developer-Guide:-Installing-and-using-Docker.md
View page @
8eb6305f
...
@@ -168,6 +168,11 @@ Or to just output the GIT_COMMIT value:
...
@@ -168,6 +168,11 @@ Or to just output the GIT_COMMIT value:
```
```
docker inspect -f '{{index .ContainerConfig.Labels "git-commit"}}'
<IMAGE_NAME>
docker inspect -f '{{index .ContainerConfig.Labels "git-commit"}}'
<IMAGE_NAME>
```
```
For this to work the following lines must be included in the `Dockerfile` of each image:
```
ARG GIT_COMMIT=unknown
LABEL git-commit=$GIT_COMMIT
```
## Publishing images
## Publishing images
Push images to [Docker Hub](https://hub.docker.com/u/openremote):
Push images to [Docker Hub](https://hub.docker.com/u/openremote):
...
...
...
...