Skip to content

Instantly share code, notes, and snippets.

@ramielrowe
Created August 26, 2014 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramielrowe/4d162d780977542997a8 to your computer and use it in GitHub Desktop.
Save ramielrowe/4d162d780977542997a8 to your computer and use it in GitHub Desktop.
Inconsistent keys and data model
* Network attributes
** Create call
{“ExposedPorts”: {“22/tcp”: {}}}
** Inspect/show call
{“HostConfig”: {“PortBinding”: [{“22/tcp”: {“HostIP”: “0.0.0.0”, “HostPort”: “2222”}}]}}
** List call
{“Ports”: [{“PrivatePort”: “2222”, “PublicPort”: “22”, “Type”:”tcp”}]}
* Root level attributes in create call are then broken out into “Config”, “HostConfig” for show, but are also root level in list call.
Non-nova/Openstack API methodologies
* Directly specifying resource constraints (memory, rootfs size limits) rather than flavors.
* Directly specifying network addresses/ports instead of neutron ids
Synchronous API, would need to modify dockercli to handle async tasks anyways.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment