My image:
docker run -it –rm my-boot2docker-img bash
root@f593a2dfb0d8:/# cat /etc/timezone
Asia/Shanghai
Convert to iso file:
docker run –rm my-boot2docker-img > boot2docker.iso
docker-machine create -d xhyve –xhyve-boot2docker-url /MyApp/docker-machine/boot2docker.iso worker1
docker-machine ssh worker1
cat /etc/timezone
UTC
How can we ensure that the time zone is Asia/Shanghai?
Dockfile
RUN echo "Asia/Shanghai" > /etc/timezone
How about this?