Skip to content

OpenStackClient in a Docker container

Notifications You must be signed in to change notification settings

haxorof/docker-openstack-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

OpenStackClient

Docker Pulls CI

"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

How to use this image

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

Bash aliases

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'

About

OpenStackClient in a Docker container

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •