Open
Description
Task name
Docker
Task version
2.240.2
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
ubuntu-latest
Question
I'm building a Docker image using the Docker@2
task with the following input values:
addPipelineData: false
addBaseImageData: true
With these settings, I expected the following labels to be on my built image:
org.opencontainers.image.version
org.opencontainers.image.revision
org.opencontainers.image.base.digest
org.opencontainers.image.base.name
Instead, what I see when I run docker inspect
are the following labels:
com.azure.dev.image.build.sourceversion
com.azure.dev.image.system.teamfoundationcollectionuri
org.opencontainers.image.ref.name: ubuntu
org.opencontainers.image.version: 22.04
- My base image is
databricksruntime/python:14.3-LTS
so it seems the last two labels are just copied from there, but thebase.name
andbase.digest
are entirely missing. - I did not expect any
com.azure.dev
labels. - I expected further labels as outlined above.
Am I wrong in having these expectations? The docs do mention name and digest, but do not explain actual labels added.
addBaseImageData
- Add base image metadata to image(s)
boolean
. Default value:true
.
By default, base image data like base image name, or digest are added and help with traceability. You can opt out of this default behavior.
Activity