milvus icon indicating copy to clipboard operation
milvus copied to clipboard

milvusdb/milvus:v2.2.8,mount /etc/localtime

Open skycyan opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

What would you like to be added?

Describe the problem: $ docker run -itd -e TZ=Asia/Shanghai -v /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime milvusdb/milvus:v2.2.8 sh $ docker exec -it ed44f43244 date Tue, 09 May 2023 06:41:33 +0000

Solve: $ docker exec -it ed44f43244 apt-get -y update && apt-get -y install tzdata ... $ docker exec -it ed44f43244 date Tue May 9 15:10:18 CST 2023

Why is this needed?

milvusdb/milvus:v2.2.8 image. When mount / etc/localtime occurs, the time zone in the container cannot be changed (it does not take effect). You need to install the Tzdata package to solve the problem. As a database, the system environment in which it runs should need to change the time zone flexibly.

Anything else?

No response

skycyan avatar May 09 '23 07:05 skycyan

good suggestion. Any interest to finish your first contribution?

xiaofan-luan avatar May 09 '23 12:05 xiaofan-luan

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Rotten issues close after 30d of inactivity. Reopen the issue with /reopen.

stale[bot] avatar Jun 08 '23 17:06 stale[bot]