{"id":13550625,"url":"https://github.com/mlsmithjr/container2cli","last_synced_at":"2026-05-09T01:32:45.050Z","repository":{"id":93144240,"uuid":"360663338","full_name":"mlsmithjr/container2cli","owner":"mlsmithjr","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-23T12:49:50.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T03:08:12.813Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlsmithjr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-04-22T19:43:08.000Z","updated_at":"2022-01-05T12:11:04.000Z","dependencies_parsed_at":"2023-06-05T05:30:51.459Z","dependency_job_id":null,"html_url":"https://github.com/mlsmithjr/container2cli","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/mlsmithjr%2Fcontainer2cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlsmithjr%2Fcontainer2cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlsmithjr%2Fcontainer2cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlsmithjr%2Fcontainer2cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlsmithjr","download_url":"https://codeload.github.com/mlsmithjr/container2cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244745751,"owners_count":20503050,"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":[],"created_at":"2024-08-01T12:01:35.467Z","updated_at":"2026-05-09T01:32:40.011Z","avatar_url":"https://github.com/mlsmithjr.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"\n## container2cli\n\nThis utility allows you to generate docker cli commands or a compose file to recreate your containers.\nThis is helpful when you have existing containers and no existing shell script or compose file, or you want to move to using docker-compose.\n\nBe aware that this tool exports all environment variables assigned to a container.  \nThis includes some defined in the container itself and not by the user.  \nIt attempts to filter out some \"cruft\" but there is no way to know which env settings were created by the user.\nIf you wish to add your own then edit the _filters_ list at the top of the script.\n\nIt is a work in progress and feedback/pull requests are appreciated.\n\n### Install:\nClone this repo, then in a shell or command prompt:\n```shell\npip3 install -r requirements.txt\n```\n**Currently does not run on Synology, but you can connect to one using --host**\n\n\n### Usage:\ncontainer2cli.py [--host \u003c_host ip:port\u003e_] [--compose | --cli] \u003c_container name_\u003e ...\n\n**--host**, optional.  If given, will remote-connect to the specified Docker instance.  If omitted, will default to the host being run on.\n\n**--compose**, generate a docker-compose file\n\n**--cli**, generate shell scripts (default)\n\n**container name**, one or more container names to export\n\n### Examples:\n```shell\npython3 container2cli.py sonarr nzbget tautulli\n\npython3 container2cli.py --host homeserver:2375 --compose sonarr radarr portainer\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlsmithjr%2Fcontainer2cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlsmithjr%2Fcontainer2cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlsmithjr%2Fcontainer2cli/lists"}