Skip to content

create_container() returns 400 #16

Description

@egeexyz

The code from the documentation shows:

lxd = Hyperkit::Client.new(api_endpoint: "https://lxd.example.com", verify_ssl: false)

# Create a new container and start it
lxd.create_container("test-container", alias: "ubuntu/trusty/amd64")
lxd.start_container("test-container")

Assuming that we're running this locally on 127.0.0.1...

The lxd.create_container("test-container", alias: "ubuntu/trusty/amd64") returns the following error:
error: POST https://127.0.0.1:8443/1.0/containers: 404 - Error: not found. Use --trace to view backtrace

I've tested other functions such as copy_container, delete_container, stop_container and they all work fine. Only create_container fails with this error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions