Get the tags of the images used in a Dockerfile

dockerfile-image-tags

version semantic versioning

test

List or query images and tags used in a Dockerfile.

Usage

List all images and tags

Pass path to Dockerfile:

dockerfile-image-tags path/to/Dockerfile

Or pass Dockerfile as input:

cat path/to/Dockerfile | dockerfile-image-tags

Sample output (JSON):

[{"name":"golang","tag":"1.17.0-alpine"},{"name":"common","tag":"?"},{"name":"common","tag":"?"},{"name":"common","tag":"?"},{"name":"viaductoss/ksops","tag":"v3.0.0"},{"name":"quay.io/argoproj/argocd","tag":"$ARGOCD_VERSION"}]

Find single image tag

Pass -q (--query) to return tag for first occurrence of image with specified name:

dockerfile-image-tags -q golang path/to/Dockerfile

Pass -n (--occurrence) to return specified occurrence instead of first occurrence. For example, to return tag for second FROM golang:

dockerfile-image-tags -q golang -n 2 path/to/Dockerfile

Sample output:

1.17.0-alpine

Docker image

See shivjm/dockerfile-image-tags packages.

Owner
Shiv Jha-Mathur
Software developer from India.
Shiv Jha-Mathur
Comments
  • chore: release 2.1.0

    chore: release 2.1.0

  • chore: release 2.0.0

    chore: release 2.0.0

    :robot: I have created a release *beep* *boop*

    2.0.0 (2021-11-08)

    ⚠ BREAKING CHANGES

    • create separate list and query sub-commands
    • input: allow passing - as filename for STDIN

    Features

    • create separate list and query sub-commands (52e2059)
    • input: allow passing - as filename for STDIN (58e6c28)

    This PR was generated with Release Please. See documentation.

  • chore: release 1.3.2

    chore: release 1.3.2

  • chore: release 1.3.1

    chore: release 1.3.1

  • chore: release 1.3.0

    chore: release 1.3.0

  • chore: release 1.2.0

    chore: release 1.2.0

    :robot: I have created a release *beep* *boop*

    1.2.0 (2021-11-07)

    Features

    • add CLI flag to specify which occurrence to return (f1fe02c)
    • allow getSingleTag to return later occurrences (c1ecb37)

    This PR was generated with Release Please. See documentation.

  • chore: release 1.1.0

    chore: release 1.1.0

  • chore: release 1.0.0

    chore: release 1.0.0

    :robot: I have created a release *beep* *boop*

    1.0.0 (2021-11-07)

    ⚠ BREAKING CHANGES

    • allow specify custom marker for unknown tags

    Features

    • allow specify custom marker for unknown tags (2e874eb)
    • allow specifying unknown marker in CLI (13afe26)
    • implement parsing Dockerfile image versions (bd48f8d)

    This PR was generated with Release Please. See documentation.

Conjur Kubernetes All-in-One Dockerfile

conjur-authn-k8s-aio Conjur Kubernetes All-in-One Dockerfile Supported Authenticators Usage Build Secretless Broker Build Conjur Authn-K8s Client Buil

Sep 14, 2022
Buildg: A tool to interactively debug Dockerfile

buildg: A tool to interactively debug Dockerfile buildg is a tool to interactively debug Dockerfile based on BuildKit. Source-level inspection Breakpo

Dec 29, 2022
An image server which automatically optimize non webp and avif images to webp and avif images

go-imageserver go-imageserver is an image server which automatically optimize no

Apr 18, 2022
OCI transport plugin for apt-get (i.e., apt-get over ghcr.io)

apt-transport-oci: OCI transport plugin for apt-get (i.e., apt-get over ghcr.io) apt-transport-oci is an apt-get plugin to support distributing *.deb

Nov 1, 2022
Explore Docker registries and manipulate Docker images!
Explore Docker registries and manipulate Docker images!

L/S tags Utility and API to manipulate (analyze, synchronize and aggregate) images across different Docker registries. Example invocation $ lstags alp

Nov 25, 2022
Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.

Packer Website: https://www.packer.io IRC: #packer-tool on Freenode Mailing list: Google Groups Packer is a tool for building identical machine images

Jan 8, 2023
k8s-image-swapper Mirror images into your own registry and swap image references automatically.
k8s-image-swapper Mirror images into your own registry and swap image references automatically.

k8s-image-swapper Mirror images into your own registry and swap image references automatically. k8s-image-swapper is a mutating webhook for Kubernetes

Dec 27, 2022
Vilicus is an open source tool that orchestrates security scans of container images(docker/oci) and centralizes all results into a database for further analysis and metrics.
Vilicus is an open source tool that orchestrates security scans of container images(docker/oci) and centralizes all results into a database for further analysis and metrics.

Vilicus Table of Contents Overview How does it work? Architecture Development Run deployment manually Usage Example of analysis Overview Vilicus is an

Dec 6, 2022
:recycle: Now you can easily rollback to previous deployed images whatever you want on k8s environment

EasyRollback EasyRollback is aim to easy rollback to previous images that deployed on k8s environment Installation You should have go installation fir

Dec 24, 2022
A Simple and Comprehensive Vulnerability Scanner for Container Images, Git Repositories and Filesystems. Suitable for CI
A Simple and Comprehensive Vulnerability Scanner for Container Images, Git Repositories and Filesystems. Suitable for CI

A Simple and Comprehensive Vulnerability Scanner for Containers and other Artifacts, Suitable for CI. Table of Contents Abstract Features Installation

Jan 1, 2023
A Kubernetes Mutating Webhook to automatically re-point pod images to mirrors

kubernetes-mimic Kubernetes Mimic is a Mutating Webhook that will watch for pod creation and update events in a Kubernetes cluster and automatically a

Nov 22, 2022
Kubei is a flexible Kubernetes runtime scanner, scanning images of worker and Kubernetes nodes providing accurate vulnerabilities assessment, for more information checkout:
Kubei is a flexible Kubernetes runtime scanner, scanning images of worker and Kubernetes nodes providing accurate vulnerabilities assessment, for more information checkout:

Kubei is a vulnerabilities scanning and CIS Docker benchmark tool that allows users to get an accurate and immediate risk assessment of their kubernet

Dec 30, 2022
Sign Container Images with cosign and Verify signature by using Open Policy Agent (OPA)
 Sign Container Images with cosign and Verify signature by using Open Policy Agent (OPA)

Sign Container Images with cosign and Verify signature by using Open Policy Agent (OPA) In the beginning, I believe it is worth saying that this proje

Nov 30, 2022
ghcr images - Fetched from docker-library

ghcri ghcri is the repo for Github Container Registry Images. Just like docker-library for Docker Registry. Usage Replace all docker library from dock

Aug 15, 2022
Image clone controller is a kubernetes controller to safe guard against the risk of container images disappearing

Image clone controller image clone controller is a kubernetes controller to safe guard against the risk of container images disappearing from public r

Oct 10, 2021
Stream, Mutate and Sign Images with AWS Lambda and ECR
Stream, Mutate and Sign Images with AWS Lambda and ECR

ocistow About How it works Try it yourself Prerequisites CLI (cmd/ocistow) Lambda (cmd/ocistow-lambda) Deploy Invoke Verify signatures with =cosign= I

May 12, 2022
Boxygen is a container as code framework that allows you to build container images from code

Boxygen is a container as code framework that allows you to build container images from code, allowing integration of container image builds into other tooling such as servers or CLI tooling.

Dec 13, 2021
CLI based tools to find the secrets in docker Images
CLI based tools to find the secrets in docker Images

docker-secrets CLI based tools to find the secrets in docker Images This tool use detect-secrets to find the secrets in the docker Image file system P

Mar 22, 2022
🔮 ✈️ to integrate OPA Gatekeeper's new ExternalData feature with cosign to determine whether the images are valid by verifying their signatures

cosign-gatekeeper-provider To integrate OPA Gatekeeper's new ExternalData feature with cosign to determine whether the images are valid by verifying i

Dec 8, 2022