Thursday 29 July 2021

ORA-01882: timezone region not found in Docker

This Issue comes when the development environment and the DB Environment are different.


For Eg: I have my Local Box running in the IST Zone and the docker container in UTC Zone. Hence I arrived at this error.

To Resolve this Follow the below steps.

Create the file docker-compose.yml

version:'3'

services:
  app:
    build: .
    image: my-image
    ports:
      - "8084:8084"
    environment:
  - TZ="Asia/Kolkata"


In the above docker-compose file, I mentioned the environment variable TZ as "Asia/Kolkata". Thes Time zones can be found from the link.

Building and Starting the Docker Image

Use docker compose up

It will start the image without this Error.

Happy Solvings!!!!

No comments:
Write comments