Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
STARRY-S committed Mar 13, 2024
1 parent 9f6224f commit 0867d39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,12 @@ docker pull cnrancher/hangar:${VERSION}
docker run -v $(pwd):/hangar -it cnrancher/hangar:latest
```

::: note
:::note

自 Hangar `v1.7.2` 起,Hangar Docker 镜像的 Entrypoint 调整为 [entrypoint.sh](https://github.com/cnrancher/hangar/blob/v1.7.2/package/entrypoint.sh)

:::

```bash
docker run cnrancher/hangar:latest hangar help
```

## 将 Hangar 集成至 CI

您可以将 `cnrancher/hangar` Docker 镜像作为基础镜像使用在 CI 中,以下是一份样例脚本:
Expand Down
6 changes: 1 addition & 5 deletions versioned_docs/version-v1.7/97-docker-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,12 @@ Execute hangar commands in the container:
docker run -v $(pwd):/hangar -it cnrancher/hangar:latest
```

::: note
:::note

Starting from hangar `v1.7.2`, the entrypoint of the hangar docker image was changed to [entrypoint.sh](https://github.com/cnrancher/hangar/blob/v1.7.2/package/entrypoint.sh).

:::

```bash
docker run cnrancher/hangar:latest hangar help
```

## Integrate Hangar with CI

You can use `cnrancher/hangar` docker image as base image to integrate hangar with CI, here is an example script:
Expand Down

0 comments on commit 0867d39

Please sign in to comment.