Skip to content

Commit

Permalink
fix(docs): bump up docs for v0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JacieChao authored and Jason-ZW committed Sep 22, 2023
1 parent be99484 commit a50715a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ Scenario 1 - Run with docker:
```bash
# The commands will start autok3s daemon with an interactionable UI.
# Standard Linux (Recommended)
$ docker run -itd --restart=unless-stopped --net=host -v /var/run/docker.sock:/var/run/docker.sock cnrancher/autok3s:v0.9.0
$ docker run -itd --restart=unless-stopped --net=host -v /var/run/docker.sock:/var/run/docker.sock cnrancher/autok3s:v0.9.1

# MacOS
$ docker run -itd --restart=unless-stopped -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock -e DOCKER_HOST="" cnrancher/autok3s:v0.9.0
$ docker run -itd --restart=unless-stopped -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock -e DOCKER_HOST="" cnrancher/autok3s:v0.9.1
```

Scenario 2 - Run with docker-compose
Expand Down Expand Up @@ -123,7 +123,7 @@ AutoK3s is 100% open-source software. The project source code is spread across a

# License

Copyright (c) 2023 [Rancher Labs, Inc.](http://rancher.com)
Copyright (c) 2023 [SUSE](https://www.suse.com/)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
autok3s:
image: cnrancher/autok3s:v0.9.0
image: cnrancher/autok3s:v0.9.1
init: true
ports:
- 8080
Expand Down
10 changes: 5 additions & 5 deletions docs/i18n/zh_cn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ AutoK3s 可以支持以下云厂商,我们会根据社区反馈添加更多支
您可以通过以下 Docker 命令,一键启动 AutoK3s 本地 UI,快速体验相关功能。

```bash
docker run -itd --restart=unless-stopped -p 8080:8080 cnrancher/autok3s:v0.9.0
docker run -itd --restart=unless-stopped -p 8080:8080 cnrancher/autok3s:v0.9.1
```

如果您想要在 docker 中使用 K3d provider,那么您需要使用宿主机网络启动 AutoK3s 镜像。

```bash
docker run -itd --restart=unless-stopped --net host -v /var/run/docker.sock:/var/run/docker.sock cnrancher/autok3s:v0.9.0
docker run -itd --restart=unless-stopped --net host -v /var/run/docker.sock:/var/run/docker.sock cnrancher/autok3s:v0.9.1
```

如果您是 MacOS 或者 Linux 系统,您也可以使用以下安装命令,一键安装 AutoK3s(Windows用户请前往 [Releases](https://github.com/cnrancher/autok3s/releases) 页面下载对应的程序)。
Expand Down Expand Up @@ -81,19 +81,19 @@ autok3s -d create -p aws --name myk3s --master 1 --worker 1

## 升级

如果您使用 Docker 命令一键启动 AutoK3s 本地 UI,从 `v0.4.0` 升级到 `v0.9.0` 需要进行如下操作以保证历史数据的迁移。
如果您使用 Docker 命令一键启动 AutoK3s 本地 UI,从 `v0.4.0` 升级到 `v0.9.1` 需要进行如下操作以保证历史数据的迁移。

```bash
docker cp <old-container>:/root/.autok3s .
docker rm -f <old-container>
docker run -itd --restart=unless-stopped -p 8080:8080 -v $PWD/.autok3s:/root/.autok3s cnrancher/autok3s:v0.9.0
docker run -itd --restart=unless-stopped -p 8080:8080 -v $PWD/.autok3s:/root/.autok3s cnrancher/autok3s:v0.9.1
```

`v0.4.1` 以后的版本,可以直接通过 `--volumes-from` 来保证历史数据的迁移。

```bash
docker stop <old-container>
docker run -itd --restart=unless-stopped -p 8080:8080 --volumes-from <old-container> cnrancher/autok3s:v0.9.0
docker run -itd --restart=unless-stopped -p 8080:8080 --volumes-from <old-container> cnrancher/autok3s:v0.9.1
```

## 开发者指南
Expand Down

0 comments on commit a50715a

Please # to comment.