Can't save docker images for caching, ci v1

docker
cache
circle.yml
dependencies

#1

So I can’t save my cached docker image by the next command:
- docker save umputun/mongo-auth > ~/docker/mongo.tar

The error is:

$ docker save umputun/mongo-auth > ~/docker/mongo.tar
    Error response from daemon: chtimes /var/lib/docker/tmp/docker-export-688458445/d4a769b99d695949e89200a9e1ff9ed27e8e50ad0f205cebc22322996405198e: invalid argument
    docker save umputun/mongo-auth > ~/docker/mongo.tar returned exit code 1
    Action failed: docker save umputun/mongo-auth > ~/docker/mongo.tar

More over: I have the same (line to line, char to char) circle.yml and it saves my containers!

What is the problem could be?
Full circle:
machine:
services:
- docker
timezone:
Europe/Berlin

dependencies:
  pre:
    - sudo pip install 'docker-compose<1.6.0'
    - cp dockerForTest/nginx/nginx.conf.dist dockerForTest/nginx/nginx.conf
    - cp app/config/parameters.yml.dist app/config/parameters.yml
  override:
    - if [[ -e ~/docker/mongo.tar ]]; then docker load -i ~/docker/mongo.tar; fi
    - if [[ -e ~/docker/php.tar ]]; then docker load -i ~/docker/php.tar; fi
    - if [[ -e ~/docker/nginx.tar ]]; then docker load -i ~/docker/nginx.tar; fi
    - docker-compose -f dockerForTest/docker-compose.yml up -d
    - docker-compose -f dockerForTest/docker-compose.yml run php composer install --no-interaction
    - docker-compose -f dockerForTest/docker-compose.yml run php app/console cache:clear -e dev
    - mkdir -p ~/docker;
    - docker save umputun/mongo-auth > ~/docker/mongo.tar
    - docker save php > ~/docker/php.tar
    - docker save nginx > ~/docker/nginx.tar
  cache_directories:
    - "project/vendor"
    - "~/docker"

Circle first version


#2

WHY!.. I just clear cache of hole project and it become works. Link:

https://circleci.com/docs/1.0/how-cache-works/. Hope will be helpful for somebody!


#3