-
-
Save programmerq/4e9b4eeeb581358102852ae70b09f24e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker run --rm -it debian:jessie bash | |
Unable to find image 'debian:jessie' locally | |
jessie: Pulling from library/debian | |
5040bd298390: Already exists | |
Digest: sha256:abbe80c8c87b7e1f652fe5e99ff1799cdf9e0878c7009035afe1bccac129cad8 | |
Status: Downloaded newer image for debian:jessie | |
root@1bd72c3f9c4a:/# cat /etc/localtime | |
TZif2UTCTZif2UTC | |
UTC0 | |
root@1bd72c3f9c4a:/# date | |
Tue Feb 21 20:51:30 UTC 2017 | |
root@1bd72c3f9c4a:/# find / -name 'New_York' | |
/usr/share/zoneinfo/right/America/New_York | |
/usr/share/zoneinfo/posix/America/New_York | |
/usr/share/zoneinfo/America/New_York | |
root@1bd72c3f9c4a:/# cp /usr/share/zoneinfo/America/New_York /etc/localtime | |
root@1bd72c3f9c4a:/# date | |
Tue Feb 21 15:52:00 EST 2017 | |
root@1bd72c3f9c4a:/# exit | |
$ docker run --rm -it ubuntu:16.04 bash | |
root@6e8bb669fa53:/# date | |
Tue Feb 21 20:52:18 UTC 2017 | |
root@6e8bb669fa53:/# find / -name 'New_York' | |
/usr/share/zoneinfo/right/America/New_York | |
/usr/share/zoneinfo/posix/America/New_York | |
/usr/share/zoneinfo/America/New_York | |
root@6e8bb669fa53:/# cp /usr/share/zoneinfo/America/New_York /etc/localtime | |
root@6e8bb669fa53:/# date | |
Tue Feb 21 15:52:27 EST 2017 | |
root@6e8bb669fa53:/# exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment