Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

Refs #13453: document docker upload changes related to v2 #223

Merged
merged 1 commit into from
Feb 8, 2016

Conversation

beav
Copy link
Contributor

@beav beav commented Jan 29, 2016

No description provided.

@@ -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.
Copy link
Contributor

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?

@beav
Copy link
Contributor Author

beav commented Feb 2, 2016

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.
Copy link
Contributor

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?

Copy link
Contributor

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.

@beav
Copy link
Contributor Author

beav commented Feb 2, 2016

@komidore64 updated for wording alteration

@komidore64
Copy link
Contributor

looks good breh

ack

bbuckingham added a commit that referenced this pull request Feb 8, 2016
Refs #13453: document `docker upload` changes related to v2
@bbuckingham bbuckingham merged commit 433337f into Katello:master Feb 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants