xmapst / nexusimageclean Goto Github PK
View Code? Open in Web Editor NEWNexus CLI for Docker Registry v2 ๐ณ
License: MIT License
Nexus CLI for Docker Registry v2 ๐ณ
License: MIT License
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 .
[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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.