'Create a container with the specified properties.
:param dict properties: A ``dict`` mapping to the API request fields
to create a container.
:returns: A ``Deferred`` which fires with an API response when the
container with the supplied properties has been persisted to the
cluster configuration.'

@log_method
def create_container(self, properties):

    request = self.treq.post((self.base_url + '/configuration/containers'), data=dumps(properties), headers={'content-type': 'application/json'})
    request.addCallback(check_and_decode_json, CREATED)
    return request
