Mondoo Docs

Dockerfile resource

docker.file MQL resource for querying Operating System infrastructure with cnquery and cnspec.

Operating System

Dockerfile resource

Use MQL in cnspec shell or policy:

docker.file
Min version: 9.0.0Defaults: file.path instructions.length stages.length

Relationships

Mini Map
Operating System
11 resources · 22 relationshipsClick to select, expand fields to see properties.

Fields (12)

FieldTypeDescription
addprivate
docker.file.addDockerfile ADD instructions
argprivate
docker.file.argDockerfile ARG instructions
copyprivate
docker.file.copyDockerfile COPY instructions
envprivate
docker.file.envDockerfile ENV instructions
exposeprivate
docker.file.exposeDockerfile EXPOSE instruction
file
fileFile information about this Dockerfile
fromprivate
docker.file.fromDockerfile FROM instructions
instructions
dictList of instructions in the order they appear
runprivate
docker.file.runDockerfile RUN instructions
stageprivate
docker.file.stageDockerfile stages
stages
[]docker.file.stageAll stages included in this Dockerfile
userprivate
docker.file.userDockerfile USER instructions