Docker: combine docker layers into image

The origin of this question is that the pulling from docker private registry is super slow.

Then I figure out that the speed of wget through registry remote API is all right.

  • Sensu-Client inside Docker container
  • Unable to access Docker Nanoserver container web app
  • GitLab CI Docker CakePHP 2 testing doesn't work
  • When Marathon run all docker apps on same host the docker service stop
  • Best way to extend Dockerfile to pull deps/env vars from common/shared repositories
  • How to make nginx-docker container running always
  • Now I get layers of one image. How can I load it as image to my docker daemon?

    ps:

    I tried docker load < layer.0, where layer.0 is the base image of all layers.

    And the result as following.

    FATA[0015] Error: open
    /home/docker/data/docker/tmp/docker-import-087506163/repo/etc/json: no
    such file or directory

  • Weird behaviour of boto inside docker
  • Kafka not interacting with kaka-python code in docker
  • Jenkins: pass (environment) variable to Docker while building the image
  • Unable to correct problems, you have held broken packages
  • Building an Android project from the command line with Docker
  • Docker for Windows REST API - enable CROSS
  • One Solution collect form web for “Docker: combine docker layers into image”

    All layers are diffs you have to load them all for your “image” to be containerized. There is no single image file which contains all your layers. This is useful when you have many images with the same base image and the layers are shared. The only way to compress the layers into a single image is to run a container and export it into a tarball and them import it into a new image and deploy that to dockerhub or your repository.

    See Solomon Hykes comment for source.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.