Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,30 @@
# cn-image
# Vanilla OS CN Waydroid Image

This image is based on the Vanilla OS Desktop Waydroid image.

## Changes

- Replace Debian APT sources with TUNA mirrors for mainland China users.
- Add IBus Chinese input methods: libpinyin and Rime.

## Build

```bash
vib build recipe.yml
podman image build -t vanillaos/waydroid-cn .
```

## Container registry mirrors

The image includes mainland China container registry mirror defaults:

- Docker Engine uses `https://docker.nju.edu.cn` as the Docker Hub registry mirror.
- Podman, Buildah, and Skopeo use:
- `docker.io` -> `docker.nju.edu.cn`
- `ghcr.io` -> `ghcr.nju.edu.cn`

Docker Engine only supports transparent registry mirrors for Docker Hub. For GHCR with Docker, pull from the mirror domain explicitly, for example:

```bash
docker pull ghcr.nju.edu.cn/vanilla-os/desktop:main
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
unqualified-search-registries = ["docker.io"]

[[registry]]
prefix = "docker.io"
location = "docker.io"

[[registry.mirror]]
location = "docker.nju.edu.cn"

[[registry]]
prefix = "ghcr.io"
location = "ghcr.io"

[[registry.mirror]]
location = "ghcr.nju.edu.cn"
5 changes: 5 additions & 0 deletions includes.container/etc/docker/daemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"registry-mirrors": [
"https://docker.nju.edu.cn"
]
}