THIS REPOSITORY IS NO LONGER MAINTAINED!
"OpenStackClient (aka OSC) is a command-line client for OpenStack that brings the command set for Compute, Identity, Image, Object Storage and Block Storage APIs together in a single shell with a uniform command structure." docs.openstack.org
In addition to the standard OpenStack client the following clients are also available:
- Designate
- Heat
Simplest way of using this image is to just run with the arguments you want. Example below will show the help of openstack
command:
docker run -it --rm haxorof/openstack-cli help
To use OpenStack configuration file that is located on the host system you mount it into the container. Example below list all servers
using the test
cloud configuration defined in ${HOME}/.config/openstack/clouds.yaml
:
docker run -it --rm -v ${HOME}/.config/openstack:/etc/openstack haxorof/openstack-cli --os-cloud test server list
To make it easier to use this container you could setup bash aliases by creating ~/.bash_aliases
with the following contents:
alias openstack='docker run -it --rm -v ${HOME}/.config/openstack:/etc/openstack haxorof/openstack-cli'