-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6e042a
commit 08a14d8
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Openstack Images | ||
|
||
To read more about Openstack images please visit the [upstream docs](https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/image-v1.html#image-create). | ||
|
||
#### List and view images | ||
|
||
``` shell | ||
openstack image list | ||
[--sort-column SORT_COLUMN] | ||
[--sort-ascending | --sort-descending] | ||
[--public | --private] | ||
[--property <key=value>] | ||
[--long] | ||
[--sort <key>[:<direction>]] | ||
``` | ||
#### View image details | ||
``` shell | ||
openstack image show <imageName> | ||
``` | ||
#### Create a image | ||
``` shell | ||
openstack image create | ||
[--id <id>] | ||
[--store <store>] | ||
[--container-format <container-format>] | ||
[--disk-format <disk-format>] | ||
[--size <size>] | ||
[--min-disk <disk-gb>] | ||
[--min-ram <ram-mb>] | ||
[--location <image-url>] | ||
[--copy-from <image-url>] | ||
[--file <file> | --volume <volume>] | ||
[--force] | ||
[--checksum <checksum>] | ||
[--protected | --unprotected] | ||
[--public | --private] | ||
[--property <key=value>] | ||
[--project <project>] | ||
<image-name> | ||
``` | ||
#### Delete a image | ||
``` shell | ||
openstack image delete <image> [<image> ...] | ||
``` | ||
#### Retrieving Images | ||
Please visit this page for examples of retrieving images [here](https://docs.openstack.org/image-guide/obtain-images.html). | ||
#### Creating a server from an image | ||
Specify the server name, flavor ID, and image ID. | ||
``` shell | ||
openstack server create --flavor FLAVOR_ID --image IMAGE_ID --key-name KEY_NAME \ | ||
--user-data USER_DATA_FILE --security-group SEC_GROUP_NAME --property KEY=VALUE \ | ||
INSTANCE_NAME | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters