How to compose a container from a Image and layer in Docker 1.10

Two questions. Thanks in advance.

  1. In V 1.10, how to get new layer ID after creating a new container
    from a image? In previous version, the layer ID is the same as
    container ID which is returned from RestAPI “POST
    /containers/create”? Looks like the new layer ID is saved in the
    last item in manifest.json, but this assumption is not safe.
  2. How to restore a container from an Image and above layer.tar?
    RestAPI “PUT /containers/(id or name)/archive” may only handles a normal tar file instead of lay.tar, and it can’t handle the deleted files in the new container.

  • Docker mongodb config file
  • Best practice: Python development environment with docker for mac
  • Jenkins Docker Container can't access docker.sock
  • docker hub api giving No 'Access-Control-Allow-Origin' error
  • Upload local files to docker container
  • Communicating with a Solr 4.10 container in docker-compose
  • running docker request from php
  • Using Java To run a shell script to copy a file to docker returns an error
  • Docker-compose second entry in yaml using a base image generated from first entry
  • Kill a running process like a webserver inside a Docker container without killing the container
  • Run docker in shell using PHP
  • How to use docker to spin up postgres database
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.