Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

launching powerjobServer in docker container time is not consist with Host Node #890

Open
baisui1981 opened this issue Apr 8, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@baisui1981
Copy link

Describe the bug
when I launched powerjobServer in docker container time is not consist with Host Node

To Reproduce
docker run command:

docker run -ti  --entrypoint /bin/bash      powerjob/powerjob-server:4.3.6

then exec the date comman:

root@e21d6333f969:/# date
Mon Apr  8 10:27:33 Asia 2024

but the host Node time is Mon Apr 8 18:27:33 Asia 2024,time offset is 8 hours

then I make a new Dockerfile as below:

FROM powerjob/powerjob-server:4.3.6

RUN apt update \
    && apt install -y tzdata \
    && ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime \
    && echo ${TZ} > /etc/timezone \
    && dpkg-reconfigure --frontend noninteractive tzdata \
    && rm -rf /var/lib/apt/lists/*

build by it:

docker build .  -t pserver

run the new image:

docker run -ti  --entrypoint /bin/bash      pserver

now is consist with Host Node time: Mon Apr 8 18:31:59 CST 2024

root@62ac7455d3b3:/# date
Mon Apr  8 18:31:59 CST 2024

Expected behavior
A clear and concise description of what you expected to happen.

Environment

  • PowerJob Version: [4.3.6]
  • Java Version: [e.g. OpenJDK 8]
  • OS: [e.g. CentOS 8.1]

Screenshots
If applicable, add screenshots to help explain your problem.

@baisui1981 baisui1981 added the bug Something isn't working label Apr 8, 2024
@baisui1981
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants