Timezone

By default, the IAM container image uses UTC as its timezone.

  • To change the timezone:
  • Set the environment variable TZ to the desired timezone, to set the timezone for Java applications, i.e. Airlock IAM.
  • Optional (in addition) bind mount /etc/localtime into the container to set the timezone for command-line tools i.e. docker exec -it ...

Set environment variable TZ

Docker CLI:

copy
docker run --rm --env "TZ=Europe/Zurich" quay.io/airlock/iam:8.2

docker-compose.yml:

version: '3.7'
services:
  iam:
    image: quay.io/airlock/iam:8.2 environment:
      - "TZ=Europe/Zurich"

Use the host system's timezone via bind mount

Docker CLI:

copy
docker run --rm -v /etc/localtime/etc/localtime:ro quay.io/airlock/iam:8.2

docker-compose.yml:

version: '3.7'
services:
  iam:
    image: quay.io/airlock/iam:8.2    volumes:
      - type: bind
        read_only: true
        source: "/etc/localtime"
        target: "/etc/localtime"