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.

  • Docker cannot run on build when running container with a different user
  • Docker Error: CSS File in Mapped Volume Fails to Update
  • Docker upgrade link container
  • Creating a testing infrastructure with Pytest , Selenium Grid and Docker
  • Docker as a builder, can't install systemd header files
  • Docker letsencrypt does not appear to be creating webroot files
  • Now I get layers of one image. How can I load it as image to my docker daemon?


    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

  • Problems running npm install during docker-compose build
  • Mounted volume is empty inside container
  • Does it make sense to install the runtime on docker?
  • Load balancing docker swarm using Ha Proxy
  • update git version in docker container
  • Running Docker script application inside a container
  • 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.