{"id":49257373,"url":"https://github.com/canonical/lxd-demo-server","last_synced_at":"2026-05-11T13:00:59.766Z","repository":{"id":144267509,"uuid":"45572671","full_name":"canonical/lxd-demo-server","owner":"canonical","description":"The LXD demo server","archived":false,"fork":false,"pushed_at":"2024-01-02T07:53:33.000Z","size":263,"stargazers_count":73,"open_issues_count":1,"forks_count":24,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-06-22T17:01:44.744Z","etag":null,"topics":["containers","demo","go","lxd"],"latest_commit_sha":null,"homepage":"https://linuxcontainers.org/lxd/try-it","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/canonical.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-11-04T22:51:36.000Z","updated_at":"2025-04-07T11:56:16.000Z","dependencies_parsed_at":"2024-04-18T05:32:56.597Z","dependency_job_id":null,"html_url":"https://github.com/canonical/lxd-demo-server","commit_stats":null,"previous_names":["lxc/lxd-demo-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/canonical/lxd-demo-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canonical%2Flxd-demo-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canonical%2Flxd-demo-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canonical%2Flxd-demo-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canonical%2Flxd-demo-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/canonical","download_url":"https://codeload.github.com/canonical/lxd-demo-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canonical%2Flxd-demo-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32895978,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["containers","demo","go","lxd"],"created_at":"2026-04-25T05:00:20.559Z","updated_at":"2026-05-11T13:00:59.759Z","avatar_url":"https://github.com/canonical.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# LXD demo server\n\nThis repository contains the backend code of the LXD online demo service.\n\n[https://linuxcontainers.org/lxd/try-it](https://linuxcontainers.org/lxd/try-it)\n\n## What is it\n\nSimply put, it's a small Go daemon exposing a REST API that users\n(mostly our javascript client) can interact with to create temporary\ntest containers and attach to that container's console.\n\nThose containers come with a bunch of resource limitations and an\nexpiry, when the container expires, it's automatically deleted.\n\nThe main client can be found at the URL above, with its source available here:  \n[https://github.com/lxc/linuxcontainers.org](https://github.com/lxc/linuxcontainers.org)\n\n## Installing on Ubuntu\nThe easiest way to get the demo server running on Ubuntu is by using the snap package.\n\nFirst install and configure LXD itself:\n\n```\nsudo snap install lxd\nsudo lxd init\n```\n\nThen install and configure the LXD demo server:\n\n```\nsudo snap install lxd-demo-server\nsudo snap connect lxd-demo-server:lxd lxd:lxd\nsudo lxd-demo-server.configure\n```\n\nYou can then access the server at: http://IP-ADDRESS:8080/\n\n## Dependencies\n\nThe server needs to be able to talk to a LXD daemon over the local unix\nsocket, so you need to have a LXD daemon installed and functional before\nusing this server.\n\nOther than that, you can pull all the other necessary dependencies with:\n\n    go get github.com/lxc/lxd-demo-server\n\n## Building it\n\nA very simple:\n\n    go build\n\nShould do the trick.\n\n## Running it\n\nTo run your own, you should start by copying the example configuration\nfile \"lxd-demo.yaml.example\" to \"lxd-demo.yaml\", then update its content\naccording to your environment.\n\nYou will either need a container to copy for every request or a\ncontainer image to use, set that up and set the appropriate\nconfiguration key.\n\nOnce done, simply run the daemon with:\n\n    ./lxd-demo-server\n\nThe daemon isn't verbose at all, in fact it will only log critical LXD errors.\n\nYou can test things with:\n\n    curl http://localhost:8080/1.0\n    curl http://localhost:8080/1.0/terms\n\nThe server monitors the current directory for changes to its configuration file.\nIt will automatically reload the configuration after it's changed.\n\n## Bug reports\n\nBug reports can be filed at https://github.com/lxc/lxd-demo-server/issues/new\n\n## Contributing\n\nFixes and new features are greatly appreciated but please read our\n[contributing guidelines](CONTRIBUTING.md) first.\n\nContributions to this project should be sent as pull requests on github.\n\n## Support and discussions\n\nWe use the LXC mailing-lists for developer and user discussions, you can\nfind and subscribe to those at: https://lists.linuxcontainers.org\n\nIf you prefer live discussions, some of us also hang out in\n[#lxcontainers](http://webchat.freenode.net/?channels=#lxcontainers) on irc.freenode.net.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanonical%2Flxd-demo-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcanonical%2Flxd-demo-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanonical%2Flxd-demo-server/lists"}