{"id":13588546,"url":"https://github.com/hugojosefson/proxmox-create-docker-ct","last_synced_at":"2025-07-30T17:33:00.492Z","repository":{"id":50150546,"uuid":"497346166","full_name":"hugojosefson/proxmox-create-docker-ct","owner":"hugojosefson","description":"Run each docker-compose.yml inside one unprivileged LXC container, on Proxmox (PVE).","archived":false,"fork":false,"pushed_at":"2024-02-27T22:44:34.000Z","size":113,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-06T08:41:02.734Z","etag":null,"topics":["container","ct","docker","docker-compose","lxc","proxmox","pve"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hugojosefson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-28T14:47:28.000Z","updated_at":"2024-09-02T19:25:58.000Z","dependencies_parsed_at":"2024-11-06T08:33:21.015Z","dependency_job_id":"467812fc-726c-4982-8659-e7599efb73bc","html_url":"https://github.com/hugojosefson/proxmox-create-docker-ct","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugojosefson%2Fproxmox-create-docker-ct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugojosefson%2Fproxmox-create-docker-ct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugojosefson%2Fproxmox-create-docker-ct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugojosefson%2Fproxmox-create-docker-ct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugojosefson","download_url":"https://codeload.github.com/hugojosefson/proxmox-create-docker-ct/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228165017,"owners_count":17879180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["container","ct","docker","docker-compose","lxc","proxmox","pve"],"created_at":"2024-08-01T15:06:47.021Z","updated_at":"2024-12-04T18:19:43.780Z","avatar_url":"https://github.com/hugojosefson.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# create-docker-ct for Proxmox VE\n\nScripts and notes for running one `docker-compose.yml` application using\n[Docker Compose](https://github.com/docker/compose) inside an unprivileged LXC\ncontainer, on\n[Proxmox Virtual Environment (PVE)](https://www.proxmox.com/en/proxmox-ve).\n\nUse this if you want:\n\n- one unprivileged LXC container per one application (one `docker-compose.yml`)\n- a bind-mounted directory into each container/application, where\n  - its `docker-compose.yml` lives there\n  - its configuration lives there\n  - its data lives there\n\nThis means, that to deploy a new application, you...\n\n1. run the script `create-docker-ct` with the name of your new application as\n   argument,\n2. create or download its `docker-compose.yml` file into the directory the\n   script tells you,\n3. start the newly created LXC container.\n\n## Install\n\n### Prerequisites\n\n- Install PVE (for example via\n  https://github.com/hugojosefson/proxmox-root-on-encrypted-zfs).\n\n### Install create-docker-ct\n\n```sh\ncurl -sSfL https://github.com/hugojosefson/proxmox-create-docker-ct/tarball/main \\\n  | tar -xzvC /usr/local/bin --wildcards \"*/usr_local_bin/\" --strip-components=2\n```\n\n## Create an app CT\n\n```\nUSAGE:\n\n  create-docker-ct --help                              This help message\n  create-docker-ct \u003cname\u003e                              Create a CT from alpine-3.18-default_20230607_amd64.tar.xz\n  create-docker-ct \u003cname\u003e [\u003cbase_template_filename\u003e]   Create a CT from specified base template\n\nEXAMPLE:\n\n  create-docker-ct my-service\n  create-docker-ct my-service alpine-3.18-default_20230607_amd64.tar.xz\n  create-docker-ct my-service ubuntu-22.04-standard_22.04-1_amd64.tar.zst\n  create-docker-ct my-service debian-12-standard_12.0-1_amd64.tar.zst\n```\n\nRun this script:\n\n```sh\ncreate-docker-ct \u003cname\u003e\n```\n\n...where `\u003cname\u003e` is the name of the app.\n\nThe application's name will be its directory name, and its hostname.\n\nThe script will output:\n\n- the app CT's VMID number, and\n- the directory mounted as `/appdata` inside the CT, where its\n  `docker-compose.yml` etc. lives.\n\n## Deploy/redeploy application inside\n\nEdit the CT's `docker-compose.yml` file, or overwrite it with what you want to\ndeploy.\n\nStart or restart the app CT:\n\n```sh\npct start \u003cvmid\u003e\n```\n\n```sh\npct restart \u003cvmid\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugojosefson%2Fproxmox-create-docker-ct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugojosefson%2Fproxmox-create-docker-ct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugojosefson%2Fproxmox-create-docker-ct/lists"}