Giter Club home page Giter Club logo

docker-image-labeler's Introduction

docker-image-labeler CircleCI

Adds and removes labels from docker images

Requirements

  • golang 1.12+

Background

This package allows for adding and removing image labels without rebuilding images. Layer history creation time may change.

Installation

Debian packages are available via packagecloud

For a prebuilt binaries, see the github releases page.

Building from source

A make target is provided for building the package from source.

make build

In addition, builds can be performed in an isolated Docker container:

make build-docker-image build-in-docker

Usage

# pull an image
docker image pull mysql:8

# add a label
./docker-image-labeler relabel --label=mysql.version=8 mysql:8

# remove the label
./docker-image-labeler relabel --remove-label=mysql.version mysql:8

docker-image-labeler's People

Contributors

adam12 avatar cellane avatar coffee2codenl avatar dependabot[bot] avatar josegonzalez avatar ryangaudion avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-image-labeler's Issues

There are issue with Dockerfile

Description of problem

Thanks all contributors, this project help me quickly removes labels from docker images.
but I meet some problem when I building Dockerfile:
Error installing fpm
The last version of public_suffix (< 6.0, >= 2.0.2) to support your Ruby & RubyGems was 4.0.7.
Try installing it with gem install public_suffix -v 4.0.7 and then running the current command again.

Steps to reproduce

sudo docker build -f Dockerfile -t docker-image-labeler .

docker-image-labeler version

master

Output of failing command

No response

Question: setting creation date

Hi,
is there a possibility to set the creation date for the newly created image? Or at least keep the original one?
Currently it's seems to be set to 1.1.1980

updated image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.