{"id":26109499,"url":"https://github.com/dyrnq/install-docker","last_synced_at":"2025-04-12T20:31:05.596Z","repository":{"id":45268729,"uuid":"336701821","full_name":"dyrnq/install-docker","owner":"dyrnq","description":"bash scripts install docker","archived":false,"fork":false,"pushed_at":"2025-01-22T05:36:35.000Z","size":141,"stargazers_count":10,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T14:50:17.763Z","etag":null,"topics":["bash-script","docker","install-docker"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dyrnq.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":"2021-02-07T04:40:24.000Z","updated_at":"2025-01-22T05:36:38.000Z","dependencies_parsed_at":"2024-08-11T14:27:24.250Z","dependency_job_id":"352b30d9-f538-42e4-980f-c51cad518098","html_url":"https://github.com/dyrnq/install-docker","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/dyrnq%2Finstall-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyrnq%2Finstall-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyrnq%2Finstall-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyrnq%2Finstall-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyrnq","download_url":"https://codeload.github.com/dyrnq/install-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248629291,"owners_count":21136231,"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":["bash-script","docker","install-docker"],"created_at":"2025-03-09T23:11:17.650Z","updated_at":"2025-04-12T20:31:05.562Z","avatar_url":"https://github.com/dyrnq.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# install-docker.sh\n\nThis is a script to install docker binaries. It can help you quickly extract the docker binaries from various mirrors without the steps of setting up the repository.\n\nSupports installation on more operating systems, centos, debian, ubuntu, openSUSE, Kali, archlinux, manjaro, gentoo, Alpine, voidlinux, artixlinux, antixlinux.\n\nSupport docker-compose binary installation.\n\nSupport systemd、openrc、runit.\n\n## Quickstart\n\n```bash\ncurl -fsSL https://mirror.ghproxy.com/https://raw.githubusercontent.com/dyrnq/install-docker/main/install-docker.sh | bash -s docker \\\n--mirror Tuna \\\n--version 27.1.1\n```\n\nor with docker-compose\n\n```bash\ncurl -fsSL https://cdn.jsdelivr.net/gh/dyrnq/install-docker@main/install-docker.sh | bash -s docker \\\n--mirror Tuna \\\n--version 27.1.1 \\\n--with-compose \\\n--compose-version 2.29.1 \\\n--compose-mirror daocloud\n```\n\nor with docker-compose plugin\n\n```bash\nmkdir -p /usr/local/lib/docker/cli-plugins\ncurl -fsSL https://mirror.ghproxy.com/https://raw.githubusercontent.com/dyrnq/install-docker/main/install-docker.sh | bash -s docker \\\n--mirror tencent \\\n--version 27.1.1 \\\n--with-compose \\\n--compose-version 2.29.1 \\\n--compose-mirror daocloud \\\n--compose-prefix /usr/local/lib/docker/cli-plugins \\\n--systemd-mirror \"ghproxy\"\n```\n\n## Get\n\n```bash\ngit clone --depth 1 https://github.com/dyrnq/install-docker.git\n```\n\nor\n\n```bash\ncurl -fsSL -O https://raw.githubusercontent.com/dyrnq/install-docker/main/install-docker.sh\n\nor\n\ncurl -fsSL -O https://cdn.jsdelivr.net/gh/dyrnq/install-docker@main/install-docker.sh\n\nor\n\ncurl -fsSL -O https://mirror.ghproxy.com/https://raw.githubusercontent.com/dyrnq/install-docker/main/install-docker.sh\n\nchmod +x ./install-docker.sh\n```\n\n## Usage\n\n* --version\n\n```bash\n./install-docker.sh --mirror Tuna --version 27.1.1 --prefix /usr/local/bin\n```\n\n* --mirror\n\n| mirror      | mirror web address                                |\n|-------------|---------------------------------------------------|\n| aliyun      | \u003chttps://mirrors.aliyun.com/docker-ce/\u003e           |\n| 163         | \u003chttps://mirrors.163.com/docker-ce/\u003e              |\n| tencent     | \u003chttps://mirrors.tencent.com/docker-ce/\u003e          |\n| huaweicloud | \u003chttps://mirrors.huaweicloud.com/docker-ce/\u003e      |\n| tuna        | \u003chttps://mirrors.tuna.tsinghua.edu.cn/docker-ce/\u003e |\n| tsinghua    | \u003chttps://mirrors.tuna.tsinghua.edu.cn/docker-ce/\u003e |\n| nyist       | \u003chttps://mirror.nyist.edu.cn/docker-ce/\u003e          |\n| ustc        | \u003chttps://mirrors.ustc.edu.cn/docker-ce/\u003e          |\n| sjtu        | \u003chttps://mirror.sjtu.edu.cn/docker-ce/\u003e           |\n| zju         | \u003chttps://mirrors.zju.edu.cn/docker-ce/\u003e           |\n| nju         | \u003chttps://mirrors.nju.edu.cn/docker-ce/\u003e           |\n| njupt       | \u003chttps://mirrors.njupt.edu.cn/docker-ce/\u003e         |\n| bfsu        | \u003chttps://mirrors.bfsu.edu.cn/docker-ce/\u003e          |\n| nwafu       | \u003chttps://mirrors.nwafu.edu.cn/docker-ce/\u003e         |\n| sustech     | \u003chttps://mirrors.sustech.edu.cn/docker-ce/\u003e       |\n| hit         | \u003chttps://mirrors.hit.edu.cn/docker-ce/\u003e           |\n| xtom        | \u003chttps://mirrors.xtom.com.hk/docker-ce/\u003e          |\n| pku         | \u003chttps://mirrors.pku.edu.cn/docker-ce/\u003e           |\n| ynu         | \u003chttps://mirrors.ynu.edu.cn/docker-ce/\u003e           |\n| bupt        | \u003chttps://mirrors.bupt.edu.cn/docker-ce/\u003e          |\n| njtech      | \u003chttps://mirrors.njtech.edu.cn/docker-ce/\u003e        |\n| qlu         | \u003chttps://mirrors.qlu.edu.cn/docker-ce/\u003e           |\n\n* --with-compose\n\n```bash\n./install-docker.sh --mirror Tuna --version 27.1.1 --prefix /usr/local/bin --with-compose --compose-version 2.29.1 --compose-mirror daocloud --compose-prefix /usr/local/bin\n```\n\n* --dry-run\n\n```bash\n./install-docker.sh --mirror Tuna --dry-run\n```\n\n## Command-Line Options\n\n| Name                  | Description                                   | Default                                   |\n| ----------            | ----------------                              | ----------------------                    |\n| --mirror              | mirror of docker binary download url          |                                           |\n| --prefix              | docker binary installation directory          | /usr/local/bin                            |\n| --version             | docker binary version                         | 20.10.2                                   |\n| --with-compose        | install docker-compose                        |                                           |\n| --compose-prefix      | docker-compose installation directory         | /usr/local/bin                            |\n| --compose-version     | docker-compose version                        | 1.28.2                                    |\n| --compose-mirror      | mirror of docker-compose download url         |                                           |\n| --systemd-mirror      | mirror of dockerd`s systemd unit files        | jsdelivr                                  |\n| --no-systemd          | do not install dockerd`s systemd unit files   |                                           |\n| --daemon-json         | daemon.json path or url                       |                                           |\n| --daemon-json-prefix  | daemon.json path                              | /etc/docker                               |\n| --no-daemon-json      | do not install daemon.json                    |                                           |\n| --with-openrc         | will install dockerd`s init.d files           |                                           |\n| --openrc-mirror       | mirror of dockerd`s init.d files              | jsdelivr                                  |\n| --with-runit          | will install dockerd`s runit files            |                                           |\n| --runit-mirror        | mirror of dockerd`s runit files               | jsdelivr                                  |\n| --dry-run             | dry run                                       |                                           |\n| --override-existing   | override existing                             |                                           |\n\n## Tks\n\n* [https://get.docker.com/](https://get.docker.com/)\n* [https://mirrorz.org/](https://mirrorz.org/)\n* \u003chttps://github.com/moby/moby\u003e\n* \u003chttps://github.com/docker/compose\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyrnq%2Finstall-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyrnq%2Finstall-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyrnq%2Finstall-docker/lists"}