npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@fgilde/dockwipe

v1.0.9

Published

Can delete the whole world of docker images

Downloads

26

Readme

 ____                   _     __        __  _                
|  _ \    ___     ___  | | __ \ \      / / (_)  _ __     ___
| | | |  / _ \   / __| | |/ /  \ \ /\ / /  | | | '_ \   / _ \
| |_| | | (_) | | (__  |   <    \ V  V /   | | | |_) | |  __/
|____/   \___/   \___| |_|\_\    \_/\_/    |_| | .__/   \___|
                                               |_|

Table of Contents

Introduction

DockWipe is a command line tool for deleting Docker images with specific tags. It provides an interactive interface as well as file and command line configurations to manage your Docker images.

Installation

To install DockWipe, you can use npm:

npm install -g @fgilde/dockwipe

Usage

To use DockWipe, you can run it directly from the command line, providing the necessary options either directly as command line arguments, or using a configuration file.

Command Line Options:

  • --file or -f: Path to the configuration file.
  • --registry or -r: The Docker registry.
  • --image or -i: The Docker image.
  • --username or -u or --user: The username for the Docker registry.
  • --password or -p or --pass: The password for the Docker registry.
  • --tags or -t: The tags to delete. Use commas to separate multiple tags.

To start DockWipe, simply run the dockwipe command:

dockwipe

Examples

To delete a tag 'tag1' from an image, use:

dockwipe --registry=yourRegistry --image=yourImage --username=yourUsername --password=yourPassword --tags=tag1

Or you can use the configuration file(s):

dockwipe --files=yourConfigFile.json, second.json

Configuration File

You can specify one or more configuration files to provide the options. The file(s) should be in JSON format: If you specify more files, the options are merged. This is usefull to have public options in a file that is checked in and private options in a file that is not checked in. If the same option is provided in multiple files, the last one wins. If you didn't provide a password in the config file, you will be asked for it in the UI. Notice: If you didn't specify any file, the default files are used when available in the current directory. The default files are:

'.dockwipe', '.dockwipe.user', '.dockwipe.secret', 'dockwipe.json', 'dockwipe.secret.json', 'dockwipe.user.json' 

The config file should have the following format:

{
"registry": "docker-registry.services.yourserver.de",
"image": "path/yourimage",
"username": "username",
"password": "yourPassword",
    "defaults": {
        "registry": "docker-registry.services.yourserver.de",
        "image": "path/yourimage"
    }
}

The 'defaults' field can be used to specify default values. If the corresponding option is not provided in the command line, the default value is pre filled but can changed in the UI. If a value is provided in the command line args or the config file, it overrides the default value and no UI is showing up to specify different values.

License

This project is licensed under the GPL-3.0 License - see the LICENSE.md file for details

If you like this tool, please star it on Github and share it with your friends

If not, you can give a star anyway and let me know what I can improve to make it better for you.

Links

Github Repository | NPM Package