From c45de16d98eabc491b08d342df4d75b0110b1aed Mon Sep 17 00:00:00 2001 From: Gucheng Wang Date: Thu, 23 May 2024 20:56:39 +0800 Subject: [PATCH] update install command --- docs/basic/try-with-docker.md | 36 ----------------------------------- 1 file changed, 36 deletions(-) diff --git a/docs/basic/try-with-docker.md b/docs/basic/try-with-docker.md index afaea7f..8c7273c 100644 --- a/docs/basic/try-with-docker.md +++ b/docs/basic/try-with-docker.md @@ -54,32 +54,8 @@ docker run -p 19000:19000 casbin/casvisor-all-in-one Visit [**http://localhost:19000**](http://localhost:19000) in your browser. -:::caution - -Some users in areas like China usually use Docker image mirror services like [Alibaba Cloud Image Booster](https://help.aliyun.com/document_detail/60750.html) ([English](https://www.alibabacloud.com/help/en/container-registry/latest/accelerate-the-download-of-docker-official-images)) to achieve higher download speeds compared to DockerHub. However, these services have a known issue where the `latest` tag provided by them is not up-to-date. As a result, fetching the `latest` tag may result in a very old image. To mitigate this issue, you can specify the image version number explicitly using the following command: - -```shell -docker pull casbin/casvisor-all-in-one:$(curl -sS "https://hub.docker.com/v2/repositories/casbin/casvisor-all-in-one/tags/?page_size=1&page=2" | sed 's/,/,\n/g' | grep '"name"' |awk -F '"' '{print $4}') -``` - -Note: The above command utilizes Linux tools like `curl`, `sed`, `grep`, and `awk`. If you are using Windows, make sure you run it in a Linux-style shell like `Git Shell` or `Cygwin`. `CMD` or `PowerShell` won't work. - -::: - ### **Option-2**: Try with docker-compose -:::caution - -Some users in areas like China usually use Docker image mirror services like [Alibaba Cloud Image Booster](https://help.aliyun.com/document_detail/60750.html) ([English](https://www.alibabacloud.com/help/en/container-registry/latest/accelerate-the-download-of-docker-official-images)) to achieve higher download speeds compared to DockerHub. However, these services have a known issue where the `latest` tag provided by them is not up-to-date. As a result, fetching the `latest` tag may result in a very old image. To mitigate this issue, you can specify the image version number explicitly using the following command: - -```shell -docker pull casbin/casvisor:$(curl -sS "https://hub.docker.com/v2/repositories/casbin/casvisor/tags/?page_size=1&page=2" | sed 's/,/,\n/g' | grep '"name"' |awk -F '"' '{print $4}') -``` - -Note: The above command utilizes Linux tools like `curl`, `sed`, `grep`, and `awk`. If you are using Windows, make sure you run it in a Linux-style shell like `Git Shell` or `Cygwin`. `CMD` or `PowerShell` won't work. - -::: - You can use [docker-compose.yml](https://github.com/casvisor/casvisor/blob/master/docker-compose.yml) in the official repository. Create a `conf/app.conf` directory in the same directory level as the `docker-compose.yml` file. Then, copy [app.conf](https://github.com/casvisor/casvisor/blob/master/conf/app.conf) from Casvisor. For more details about `app.conf`, you can see [configuration](/docs/basic/installation#configuration). ```bash @@ -139,18 +115,6 @@ docker run \ ::: -:::caution - -Some users in areas like China usually use Docker image mirror services like [Alibaba Cloud Image Booster](https://help.aliyun.com/document_detail/60750.html) ([English](https://www.alibabacloud.com/help/en/container-registry/latest/accelerate-the-download-of-docker-official-images)) to achieve higher download speeds compared to DockerHub. However, these services have a known issue where the `latest` tag provided by them is not up-to-date. As a result, fetching the `latest` tag may result in a very old image. To mitigate this issue, you can specify the image version number explicitly using the following command: - -```shell -docker pull casbin/casvisor:$(curl -sS "https://hub.docker.com/v2/repositories/casbin/casvisor/tags/?page_size=1&page=2" | sed 's/,/,\n/g' | grep '"name"' |awk -F '"' '{print $4}') -``` - -Note: The above command utilizes Linux tools like `curl`, `sed`, `grep`, and `awk`. If you are using Windows, make sure you run it in a Linux-style shell like `Git Shell` or `Cygwin`. `CMD` or `PowerShell` won't work. - -::: - #### Run guacd Casvisor uses guacamole-server to provide remote desktop access. If you want to use this feature, you need to run guacd. You can run guacd with the following command: