Git Product home page Git Product logo

nexusimageclean's People

Contributors

dependabot[bot] avatar xmapst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nexusimageclean's Issues

Unable to delete images using keep option

Hi @xmapst ,

I am trying to delete image using keep option and I am getting following error message. Please have a look.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x847f82]

goroutine 1 [running]:
main.(*WaitGroup).Done(0x0)
/mnt/f/GoProject/src/NexusImageClean/pool.go:33 +0x22
main.GetImageTagList(0xc0000ba000, 0x0, 0xc000024ae0)
/mnt/f/GoProject/src/NexusImageClean/actions.go:220 +0x425
main.deleteAction(0xc00027f240, 0x0, 0x0)
/mnt/f/GoProject/src/NexusImageClean/actions.go:182 +0xc14
github.com/urfave/cli/v2.(*Command).Run(0xc00011dc20, 0xc00027eec0, 0x0, 0x0)
/mnt/f/GoProject/pkg/mod/github.com/urfave/cli/[email protected]/command.go:163 +0x4ed
github.com/urfave/cli/v2.(*App).RunAsSubcommand(0xc000259040, 0xc00027ed40, 0x0, 0x0)
/mnt/f/GoProject/pkg/mod/github.com/urfave/cli/[email protected]/app.go:434 +0xa9f
github.com/urfave/cli/v2.(*Command).startApp(0xc00011d7a0, 0xc00027ed40, 0x914902, 0x7ffc0149f6ed)
/mnt/f/GoProject/pkg/mod/github.com/urfave/cli/[email protected]/command.go:278 +0x69b
github.com/urfave/cli/v2.(*Command).Run(0xc00011d7a0, 0xc00027ed40, 0x0, 0x0)
/mnt/f/GoProject/pkg/mod/github.com/urfave/cli/[email protected]/command.go:94 +0x98d
github.com/urfave/cli/v2.(*App).RunContext(0xc000258ea0, 0x9b16a0, 0xc00002c088, 0xc000020070, 0x7, 0x7, 0x0, 0x0)
/mnt/f/GoProject/pkg/mod/github.com/urfave/cli/[email protected]/app.go:313 +0x81f
github.com/urfave/cli/v2.(*App).Run(...)
/mnt/f/GoProject/pkg/mod/github.com/urfave/cli/[email protected]/app.go:224
main.main()
/mnt/f/GoProject/src/NexusImageClean/main.go:28 +0x1a6
Build step 'Execute shell' marked build as failure

NexusImageClean image delete -name xxxxxxx/xxxxx -keep 4 doesn't work

"NexusImageClean image delete -name xxxxxxx/xxxxx -keep 4" doesn't work .

[root@test1 ~]# ./NexusImageClean image delete --name platform/base-data-dict-release -k 3
2021/11/04 15:15:20 You should either specify the tag or how many images you want to keep
But another command is work
[root@test1 ~]# ./NexusImageClean image delete --name platform/base-data-dict-release -tag v1.2.0
2021/11/04 15:16:55 platform/base-data-dict-release image v1.2.0 tag deleted

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.