Skip to main content

Delete

Delete a container image.

osapi client node container docker image delete

Examples​

osapi client node container docker image delete --image nginx:latest
osapi client node container docker image delete \
--image nginx:latest --force
osapi client node container docker image delete \
--image redis:7 --target web-01

Flags​

FlagDescriptionDefault
--forceForce removal even if image is in use
--imageImage name or ID to remove (required)

Global flags​

FlagDescriptionDefault
-d, --debugEnable or disable debug mode
-j, --jsonEnable JSON output
-f, --osapi-filePath to config file/etc/osapi/osapi.yaml
-T, --targetTarget: _all, _any, hostname, or label (group:web.dev)_all
--urlURL the client will connect tohttp://0.0.0.0:8080

Output tells how the result is printed, and what --json gives.