Skip to main content

Get

Get a container.

osapi client node container docker get

Examples​

osapi client node container docker get --id a1b2c3d4e5f6
osapi client node container docker get --id my-nginx
osapi client node container docker get --id my-nginx --target web-01

Flags​

FlagDescriptionDefault
--idContainer ID to inspect (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.