Chapter 23. container


This chapter describes the commands under the container command.

23.1. container create

Usage:

openstack container create [-h] [-f {csv,json,table,value,yaml}]

                                [-c COLUMN] [--max-width <integer>]
                                [--fit-width] [--print-empty] [--noindent]
                                [--quote {all,minimal,none,nonnumeric}]
                                [--sort-column SORT_COLUMN]
                                <container-name> [<container-name> ...]
Copy to Clipboard Toggle word wrap

Create new container

Expand
Table 23.1. Positional Arguments
ValueSummary

<container-name>

New container name(s)

Expand
Table 23.2. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 23.3. Output Formatters
ValueSummary

-f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml}

the output format, defaults to table

-c COLUMN, --column COLUMN

specify the column(s) to include, can be repeated

--sort-column SORT_COLUMN

specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated

Expand
Table 23.4. Table Formatter
ValueSummary

--max-width <integer>

Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.

--fit-width

Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable

--print-empty

Print empty table if there is no data to show.

Expand
Table 23.5. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 23.6. CSV Formatter
ValueSummary

--quote {all,minimal,none,nonnumeric}

when to include quotes, defaults to nonnumeric

23.2. container delete

Usage:

openstack container delete [-h] [--recursive]

                                <container> [<container> ...]
Copy to Clipboard Toggle word wrap

Delete container

Expand
Table 23.7. Positional Arguments
ValueSummary

<container>

Container(s) to delete

Expand
Table 23.8. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--recursive, -r

Recursively delete objects and container

23.3. container list

Usage:

openstack container list [-h] [-f {csv,json,table,value,yaml}]

                              [-c COLUMN] [--max-width <integer>]
                              [--fit-width] [--print-empty] [--noindent]
                              [--quote {all,minimal,none,nonnumeric}]
                              [--sort-column SORT_COLUMN]
                              [--prefix <prefix>] [--marker <marker>]
                              [--end-marker <end-marker>]
                              [--limit <num-containers>] [--long] [--all]
Copy to Clipboard Toggle word wrap

List containers

Expand
Table 23.9. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--prefix <prefix>

Filter list using <prefix>

--marker <marker>

Anchor for paging

--end-marker <end-marker>

End anchor for paging

--limit <num-containers>

Limit the number of containers returned

--long

List additional fields in output

--all

List all containers (default is 10000)

Expand
Table 23.10. Output Formatters
ValueSummary

-f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml}

the output format, defaults to table

-c COLUMN, --column COLUMN

specify the column(s) to include, can be repeated

--sort-column SORT_COLUMN

specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated

Expand
Table 23.11. Table Formatter
ValueSummary

--max-width <integer>

Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.

--fit-width

Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable

--print-empty

Print empty table if there is no data to show.

Expand
Table 23.12. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 23.13. CSV Formatter
ValueSummary

--quote {all,minimal,none,nonnumeric}

when to include quotes, defaults to nonnumeric

23.4. container save

Usage:

openstack container save [-h] <container>
Copy to Clipboard Toggle word wrap

Save container contents locally

Expand
Table 23.14. Positional Arguments
ValueSummary

<container>

Container to save

Expand
Table 23.15. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

23.5. container set

Usage:

openstack container set [-h] --property <key=value> <container>
Copy to Clipboard Toggle word wrap

Set container properties

Expand
Table 23.16. Positional Arguments
ValueSummary

<container>

Container to modify

Expand
Table 23.17. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--property <key=value>

Set a property on this container (repeat option to set multiple properties)

23.6. container show

Usage:

openstack container show [-h] [-f {json,shell,table,value,yaml}]

                              [-c COLUMN] [--max-width <integer>]
                              [--fit-width] [--print-empty] [--noindent]
                              [--prefix PREFIX]
                              <container>
Copy to Clipboard Toggle word wrap

Display container details

Expand
Table 23.18. Positional Arguments
ValueSummary

<container>

Container to display

Expand
Table 23.19. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 23.20. Output Formatters
ValueSummary

-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}

the output format, defaults to table

-c COLUMN, --column COLUMN

specify the column(s) to include, can be repeated

Expand
Table 23.21. Table Formatter
ValueSummary

--max-width <integer>

Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.

--fit-width

Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable

--print-empty

Print empty table if there is no data to show.

Expand
Table 23.22. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 23.23. shell formatter
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

23.7. container unset

Usage:

openstack container unset [-h] --property <key> <container>
Copy to Clipboard Toggle word wrap

Unset container properties

Expand
Table 23.24. Positional Arguments
ValueSummary

<container>

Container to modify

Expand
Table 23.25. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--property <key>

Property to remove from container (repeat option to remove multiple properties)

Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat