Create storage bucket
Storage buckets are used to contain images and other artifacts.
- From the navigation menu, select .
- From the Compartment drop- down box, select the compartment to contain the bucket.
- Click Create Bucket.
- In the Create Bucket dialog box, enter a name for the bucket.
- Click Create Bucket.
- Enter a Name for the bucket and click Create.
- Return to or open an OCI terminal.
- Determine the OCI Object storage namespace by executing the oci os ns get command.
This returns output similar to the following:
{ "data": "id732ljpics9" } - Determine the OCI Compartment ID by executing the oci iam compartment list --all command.
This returns output similar to:
{ "data": [ { "compartment-id": "ocid1...", . . . "id": "ocid1.compartment.oc1..aaaaaaaazixo6ywqdhtwetbymmw6gmrxbyaajc4aibnczaihsrfi6n5z7axq", . . . "name": "OAG", "time-created": "2019-12-11T20:54:25.053000+00:00" } ] } - Using the namespace and compartment ID create a bucket using a command similar to:
oci os bucket create \ --namespace <namespace> \ --name <bucket name> \ --compartment-id <compartment id>
For example:
oci os bucket create \ --namespace "id732ljpics9" \ --name "OAG" \ --compartment-id "ocid1.compartment.oc1..aaaaaaaazixo6ywqdhtwetbymmw6gmrxbyaajc4aibnczaihsrfi6n5z7axq"
Related resources
Manage Buckets for more information on OCI compartments.