How to manage Object containers using the CLI

To create a container, run the following command and replace CONTAINER with the name of your container.

$ openstack container create CONTAINER

To list all containers, run the following command:

$ openstack container list

To check the status of containers, run the following command:

$ openstack object store account show
+------------+---------------------------------------+
| Field      | Value                                 |
+------------+---------------------------------------+
| Account    | AUTH_1c80d7de201844c4bf5d2248bae23e4f |
| Bytes      | 0                                     |
| Containers | 1                                     |
| Objects    | 0                                     |
+------------+---------------------------------------+

$ openstack container show CONTAINER
+--------------+---------------------------------------+
| Field        | Value                                 |
+--------------+---------------------------------------+
| account      | AUTH_1c80d7de201844c4bf5d2248bae23e4f |
| bytes_used   | 0                                     |
| container    | CONTAINER                             |
| object_count | 0                                     |
+--------------+---------------------------------------+