How to compose a container from a Image and layer in Docker 1.10
Two questions. Thanks in advance.
- 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.
- 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.