https://mo.joyent.com/docs/engdoc/master/roadmap/projects/sdc-docker.html#m23
Finish off docker image work. The first part of the image work was done in M2. This is for publish support to allow user to create a docker repo out of a container and push it to the registry. This fulfills three of common container lifecyle use cases - backup, snapshot and templating. See the roadmap.
Former user commented on 2015-05-01T13:20:00.000-0400:
Some notes on 'docker tag' when I was looking at the "UUID change" (what the IMGAPI UUID should be a for a Docker image ID, see DOCKER-257#icft=DOCKER-257 work):
The question was whether the UUID change to be dependent on both (a) the docker image ID and (b) on the registry host (aka the index name) would cause problems for later supporting 'docker tag'. Take this scenario
1. 'docker pull busybox:latest'
2. 'docker tag busybox:latest reg.example.com/busybox:foo'
3. 'docker push reg.example.com/busybox:foo'
4. 'docker pull reg.example.com/busybox:foo'
With Docker-docker at #2 you have:
ubuntu@1fd15fd8-e5cd-6ef0-ab35-aae2181b7cd4:~$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
busybox latest 8c2e06607696 13 days ago 2.433 MB
localhost:5000/busybox latest 8c2e06607696 13 days ago 2.433 MB
then #4 basically becomes a no-op (already have the image locally).
How do we make this work reasonably for SDC? An attempt:
For #2 we have a Docker image with a new registry host, which means a new UUID, i.e. a new image in IMGAPI. We can make that fast with a IMGAPI AdminCloneImage endpoint that just copies the image file in the storage backend (cp for local storage, snaplink for Manta storage). To avoid needing to play games with the push/pull later, we also should be creating a new IMGAPI image for the full ancestry.
On push (#3) we will can simply push the full ancestry of new images that we've just created.
On pull (#4) we have the same behaviour as Docker-docker: we already have the image (and its full ancestry).
Former user commented on 2016-11-04T18:50:28.000-0400:
ignore my flailing on resolved state.
Former user commented on 2018-05-07T22:26:24.743-0400:
Todd has added 'docker push' support.