Importing a container image (Glance)

You can import a container image into IBM® Cloud Manager with OpenStack (Glance).

Procedure

Use the following command to import the container image.
# glance image-create --is-public=True --container-format=docker --disk-format=raw --name <image name> < <image tar file> 

Ensure that the image name is the same as the image tar file name. The container format must be docker and the disk format must be raw.

For example:
# . ~/openrc
# glance image-create --is-public=True --container-format=docker --disk-format=raw --name img_httpd < img_httpd.tar