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.

  • Copy all files with given extension from docker container
  • flocker-docker-plugin doesn't work
  • Docker - Backup Containers in /var/lib/docker/vfs/dir
  • how to implement Sensu Check for checking if Docker Container is running or not
  • Docker run command ignoring part of Dockerfile CMD when ENTRYPOINT present
  • GAE Managed VMs - can't deploy if your project name is too long
  • 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

  • build a data container or point to the existing files in docker?
  • How do you share volumes between Docker containers in an Elastic Beanstalk application?
  • Running docker on Android
  • How to run an application as 100 services with docker? [closed]
  • Setting up 4 containers with 4 IPs and 2 interfaces on EC2
  • Writing data to file in Dockerfile
  • 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.