Concepts¶
Docker v2 Concepts¶
Upload¶
Unfortunately, Docker has not provided a docker save
command that can
output Docker v2 content. However, if you wish to upload a Docker v2 schema 2 image, then you could use skopeo
copy
command to create an on-disk representation of the image and later upload it after tarring it.
Other option is to push it into Docker’s distribution container, and then
synchronize a Pulp repository with the local registry.
Docker v1 Concepts¶
Repository and Tags¶
A Docker v1 repository is a collection of Images that can have tags. A Pulp
repository likewise is a collection of Docker Images. Tags are a property of the
repository and can be modified with the command pulp-admin docker repo update
and its --tag
option.
Note
Tags are a repository property in v1, but are a full Unit in v2.
Upload¶
An upload operation potentially includes multiple layers. When doing a
docker save
, a tarball is created with the requested repository and all of
its ancestor layers. When uploading that tarball to Pulp, each layer will be
added to the repository as a unit. The tags will also be added to the
repository, overwriting any previous tags of the same name.