-
Notifications
You must be signed in to change notification settings - Fork 29
Refs #13453: document docker upload
changes related to v2
#223
Conversation
@@ -34,23 +34,15 @@ Then click save and then sync the Repository as you normally would. Katello will | |||
|
|||
## How to Upload Docker Images | |||
|
|||
As an alternative to syncing content, Docker images can be uploaded directly into Katello either by the UI or the CLI. These images can either be added to Repositories which have been synced from an external source such as Docker Hub, or they can be uploaded into Repositories which have no external source. For the latter, you can create a Repository in Katello with no upstream name or registry URL. This is handy if you just want to create a repository from only Docker images you plan to upload. | |||
In versions of Katello prior to 2.5, Docker images could be uploaded directly via either the UI or CLI. However, Katello 2.5 only supports the Docker Registry v2 format, which is significantly different than the Docker Registry v1 format. The `docker save` command outputs a Docker image in v1 format, which cannot be uploaded directly to a v2 repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this reference 3.0
rather than 2.5
?
5595218
to
e3e6bb5
Compare
updated to remove 2.5 reference |
``` | ||
$ hammer repository upload-content --path centos_latest.tar --id 6 | ||
``` | ||
Note the ":2" in the above command, which specifies a v2 registry. At this point, you can then push changes to your local Docker registry. Once this is complete, you can follow the instructions in the above section to add this registry and sync from it. This will ensure that your Docker content stays in Docker Registry v2 format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe use backticks (```) here rather than quotes for the :2
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the wording for this paragraph feels weird. Lots of "you can do thing" rather than just "do thing."
my suggestion:
Note the :2
above, which specifies a v2 registry. Push your changes to your newly created local registry then follow the instructions in the section above to sync this registry to Katello. This will ensure that your Docker content stays in Docker's v2 registry format.
e3e6bb5
to
8b33468
Compare
@komidore64 updated for wording alteration |
looks good breh ack |
Refs #13453: document `docker upload` changes related to v2
No description provided.