Hi all,
I ran ‘docker save’ command to save a docker image into a tarball on Linux, the issue I found is that the timestamp of files ‘manifest.json’ and ‘repositories’ were set to ‘1970-01-01 00:00’. Other files are normal.
This issues happened for all docker images pulled to local server ‘test’. the following is a demo for ‘centos:latest’ image:
Any one know what’s the issue and workaround? Thanks a lot.
[root@test tmp]# docker save -o /var/tmp/centos.latest.tar centos:latest
[root@test tmp]# tar -tvf /var/tmp/centos.latest.tar
drwxr-xr-x 0/0 0 2017-06-08 22:35 5883079abfb1310cbad04af7a326f026426d5b72e1072c30654103d6e70bf60c/
-rw-r–r-- 0/0 3 2017-06-08 22:35 5883079abfb1310cbad04af7a326f026426d5b72e1072c30654103d6e70bf60c/VERSION
-rw-r–r-- 0/0 764 2017-06-08 22:35 5883079abfb1310cbad04af7a326f026426d5b72e1072c30654103d6e70bf60c/json
-rw-r–r-- 0/0 200190976 2017-06-08 22:35 5883079abfb1310cbad04af7a326f026426d5b72e1072c30654103d6e70bf60c/layer.tar
-rw-r–r-- 0/0 891 2017-06-08 22:35 8c42a69913761aa5fee59d2bb4c3f37845a9dcc69dce33527a6b505f7cbd5a69.json
-rw-r–r-- 0/0 202 1970-01-01 00:00 manifest.json
-rw-r–r-- 0/0 89 1970-01-01 00:00 repositories
[root@test tmp]#