Skip to content

Commit d3a011b

Browse files
committed
doc: fix README Installation and Usage command
1 parent 2f08627 commit d3a011b

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,20 @@ The supported Ruby versions range from Ruby 2.5 to Ruby 3.4, specifically includ
2929
You can pull pre-built images from [GitHub Container Registry (GHCR)](https://ghcr.io). For example, to pull the Ruby 3.3.7 amd64 image:
3030

3131
```bash
32-
docker pull ghcr.io/junminhong/ruby-distroless:3.3.7-linux/amd64
32+
# amd64
33+
docker pull ghcr.io/junminhong/ruby-distroless:3.3.7-amd64
34+
# arm65
35+
docker pull ghcr.io/junminhong/ruby-distroless:3.3.7-arm64
3336
```
3437

3538
## Usage
3639
You can run Ruby directly using this image:
3740

3841
```bash
39-
docker run --rm ghcr.io/junminhong/ruby-distroless:3.3.7-linux/amd64 ruby -v
42+
# amd64
43+
docker run --rm ghcr.io/junminhong/ruby-distroless:3.3.7-amd64 ruby -v
44+
# arm65
45+
docker run --rm ghcr.io/junminhong/ruby-distroless:3.3.7-arm64 ruby -v
4046
```
4147

4248
This will display the Ruby version. If you need to run other Ruby programs inside the container, refer to Docker's [CMD instruction](https://docs.docker.com/engine/reference/builder/#cmd).

README_zh_hant.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,20 @@ Ruby Distroless 是一個開源專案,旨在利用 Google 的 [distroless](htt
2727
你可以從 [GitHub Container Registry (GHCR)](https://ghcr.io) 拉取構建好的映像。例如,要拉取 Ruby 3.3.7 版本的 amd64 映像:
2828

2929
```bash
30-
docker pull ghcr.io/junminhong/ruby-distroless:3.3.7-linux/amd64
30+
# amd64
31+
docker pull ghcr.io/junminhong/ruby-distroless:3.3.7-amd64
32+
# arm65
33+
docker pull ghcr.io/junminhong/ruby-distroless:3.3.7-arm64
3134
```
3235

3336
## 使用方式
3437
你可以直接使用該映像來運行 Ruby 程式。例如:
3538

3639
```bash
37-
docker run --rm ghcr.io/junminhong/ruby-distroless:3.3.7-linux/amd64 ruby -v
40+
# amd64
41+
docker run --rm ghcr.io/junminhong/ruby-distroless:3.3.7-amd64 ruby -v
42+
# arm65
43+
docker run --rm ghcr.io/junminhong/ruby-distroless:3.3.7-arm64 ruby -v
3844
```
3945

4046
這將顯示 Ruby 版本資訊。如果你需要在容器中運行其他 Ruby 程式,請參考 Docker 的 [CMD 指令](https://docs.docker.com/engine/reference/builder/#cmd) 進行調整。

0 commit comments

Comments
 (0)