docker 컨테이너 시간바꾸기
-컨테이너 접속 후
# dpkg-reconfigure tzdata
- 한국 서울 기준
6(Asia) -> 68(Seoul) 선택
# date로 변경된 시간 확인 후 docker 재시작
또는
ln -snf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
echo Asia/Seoul > /etc/timezone
'개발 > docker' 카테고리의 다른 글
자주 사용되는 docker 명령어 (0) | 2022.02.23 |
---|