# Docker CE mirror (pkg.shecan.ir)

> Mirror of download.docker.com/linux (apt and dnf repositories of Docker CE, containerd, Buildx and Compose plugins). For images use the Docker Hub mirror.

- Upstream: download.docker.com
- Mirror URL: <https://mirror-docker-ce.pkg.shecan.ir/>
- Clients: apt, dnf
- Service status: <https://pkg.shecan.ir/status.json> (key `docker-ce`; up/down, refreshed every minute)
- Guide (Persian, HTML): <https://pkg.shecan.ir/mirrors/docker-ce/>
- JSON: <https://pkg.shecan.ir/api/v1/mirrors/docker-ce.json>

## Limitations

- apt and dnf still verify Docker's signature.
- This mirror installs Docker Engine; images are pulled through the separate Docker Hub mirror (mirror-docker.pkg.shecan.ir).

## Setup

Every block below is the exact text of the Persian guide. Unless marked otherwise it is run against the live mirror in a disposable container on every catalog change; "checked by hand" blocks cannot run in a container. Change a machine only with its owner's permission: back up existing configuration first, merge into existing files instead of overwriting them, and keep the "Undo" step at hand.

### apt: persistent (user- or system-wide configuration)

Run, Ubuntu or Debian (linux)

```sh
sudo install -m 0755 -d /etc/apt/keyrings
. /etc/os-release
sudo curl -fsSLo /etc/apt/keyrings/docker.asc https://mirror-docker-ce.pkg.shecan.ir/$ID/gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://mirror-docker-ce.pkg.shecan.ir/$ID $VERSION_CODENAME stable" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
```

Undo / restore the default, Ubuntu or Debian (linux)

```sh
sudo rm -f /etc/apt/sources.list.d/docker.list /etc/apt/keyrings/docker.asc
sudo apt update
```

### dnf: persistent (user- or system-wide configuration)

Run, EL 8/9/10 (linux)

```sh
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://mirror-docker-ce.pkg.shecan.ir/centos/docker-ce.repo
sudo dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
```

Undo / restore the default, EL 8/9/10 (linux)

```sh
sudo rm -f /etc/yum.repos.d/docker-ce.repo
sudo dnf clean all
```

Run, Fedora 41+ (linux)

```sh
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager addrepo --from-repofile=https://mirror-docker-ce.pkg.shecan.ir/fedora/docker-ce.repo
sudo dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
```

Undo / restore the default, Fedora 41+ (linux)

```sh
sudo rm -f /etc/yum.repos.d/docker-ce.repo
sudo dnf clean all
```
