{"id":28276797,"url":"https://github.com/ptechgithub/termux-docker","last_synced_at":"2025-10-11T04:19:02.120Z","repository":{"id":196157576,"uuid":"694726325","full_name":"Ptechgithub/termux-docker","owner":"Ptechgithub","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-05T01:25:03.000Z","size":46,"stargazers_count":16,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-18T09:49:26.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/Ptechgithub.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}},"created_at":"2023-09-21T15:10:03.000Z","updated_at":"2025-03-03T05:17:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"d6a43554-2e67-4390-ae20-35cfc84e505f","html_url":"https://github.com/Ptechgithub/termux-docker","commit_stats":null,"previous_names":["ptechgithub/termux-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ptechgithub/termux-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ptechgithub%2Ftermux-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ptechgithub%2Ftermux-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ptechgithub%2Ftermux-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ptechgithub%2Ftermux-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ptechgithub","download_url":"https://codeload.github.com/Ptechgithub/termux-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ptechgithub%2Ftermux-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006246,"owners_count":26084060,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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":[],"created_at":"2025-05-21T05:11:28.100Z","updated_at":"2025-10-11T04:19:02.113Z","avatar_url":"https://github.com/Ptechgithub.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Install \r\n\r\n```\r\nbash \u003c(curl -fsSL https://raw.githubusercontent.com/Ptechgithub/termux-docker/main/alpine.sh)\r\n```\r\n\r\n# localhost\r\n\r\n``\r\nmkdir -p /etc/udhcpc\r\n``\r\n\r\n``\r\necho \"RESOLV_CONF=\\\"no\\\"\" \u003e /etc/udhcpc/udhcpc.conf\r\n``\r\n\r\n``\r\necho \"nameserver 1.1.1.1\" \u003e /etc/resolv.conf\r\n``\r\n\r\n``\r\necho \"nameserver 8.8.8.8\" \u003e\u003e /etc/resolv.conf\r\n``\r\n\r\n``\r\n setup-alpine \r\n``\r\n\r\n---------------------------------\r\n# alpine\r\n\r\n``\r\nrc-update add networking\r\n``\r\n\r\n``\r\npoweroff\r\n``\r\n\r\n``\r\napk update\r\n``\r\n\r\n```\r\nssh root@localhost -p 2222\r\nvi /etc/ssh/sshd_config \r\nAllowTcpForwarding yes\r\nGatewayPorts yes\r\nservice sshd restart\r\n\r\nssh -L 8080:localhost:80 -N -f root@localhost -p 2222\r\n\r\n```\r\n- ps -aux\r\n\r\n\r\n# part2\r\n## Alpine\r\n```\r\n\r\nvi /etc/apk/repositories\r\n\r\nplease Uncomment line 3\r\n\r\napk update\r\n\r\napk add docker\r\nservice docker start\r\nservice docker status\r\nrc-update add docker boot\r\n```\r\n\r\n# docker in termux\r\n\r\n\r\n```\r\n## Termux\r\n\r\npkg update -y\r\npkg install root-repo -y\r\npkg install docker -y\r\n\r\n# alpine\r\n\r\nservice docker start\r\nservice docker stop\r\ndockerd -H tcp://0.0.0.0:2074 --iptables=false\r\n\r\n# termux\r\nexport DOCKER_HOST=localhost:2074\r\necho \"export DOCKER_HOST=localhost:2074\" \u003e\u003e ~/.bashrc ; bash\r\n\r\n```\r\n\r\n# step 3\r\nGUI --\u003e Install Portainer\r\n\r\n```\r\ndocker run -d -p 8000:8000 -p 9000:9000 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest\r\n```\r\n\r\n\r\n\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptechgithub%2Ftermux-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fptechgithub%2Ftermux-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptechgithub%2Ftermux-docker/lists"}