docker

Docker - Sync your clock

By Ganessh Kumar1 min read
  • docker

Setting the Timezone
By default docker containers will sync their clock with the system clock but the default timezone will be set to "UTC". If we are using Date or Time in our application, we have to manually set the timezone for the container. One easy way to do so is by setting the environmental variable -e "TZ=Asia/Kolkata".

Syncing the clock
Sometimes, the container clock will deviate a little from the local system clock. OS X, linux and unix have '/etc/localtime' file by default. We can mount this file as a read-only file inside the container. -v /etc/localtime:/etc/localtime:ro.

  • Dockerize Meteor Application

    Learn how to build and deploy a Meteor application using Docker and Docker Compose for a streamlined production environment.

    • docker
    • docker-compose
    • meteor
  • Containerize GUI Applications on Mac

    Learn how to containerize GUI applications on Mac OS X using Docker and XQuartz, with step-by-step instructions and troubleshooting tips.

    • docker

Keep reading

I write about full-stack development, developer tooling and the problems I run into building things. Here is everything else on the blog.