<commit_before>## Staging a test locally

The biggest pain with staging a test of the docker registry locally is the TLS & CA infrastructure.

Using the files in `docker/nginx/` build the nginx server, which will include a test under `dockertest.com` -- add this to your etc/hosts.

Now, you'll need to add a CA to your install. This is an example for fedora, from this Fedora documentation.

    [doug@localhost bowline]$ sudo cp nginx/certs/ca.pem /etc/pki/ca-trust/source/anchors/
    [doug@localhost bowline]$ sudo update-ca-trust
    [doug@localhost bowline]$ curl https://dockertest/api/foo

But, this won't be any good until you restart docker

    [doug@localhost bowline]$ sudo systemctl restart docker

Now you can login & push:

    docker login -u someuser -p apasswordhere -e <EMAIL>.com https://dockertest.com
    docker push dockertest.com/someuser/tagname<commit_msg>[docs] updates staging local test docs adding ssl reference liknks<commit_after>## Staging a test locally

### SSL

The biggest pain with staging a test of the docker registry locally is the TLS & CA infrastructure. If you need another reference, I'll point you to [this github issue](https://github.com/docker/docker-registry/issues/541), which I found critical.

Using the files in `docker/nginx/` build the nginx server, which will include a test under `dockertest.com` -- add this to your `/etc/hosts`.

Now, you'll need to add a CA to your install. This is an example for fedora, based on docs from [the Fedora Project](https://fedoraproject.org/wiki/Features/SharedSystemCertificates:Testing#How_to_add_a_systemwide_CA) regarding shared system certificates.

    [doug@localhost bowline]$ sudo cp nginx/certs/ca.pem /etc/pki/ca-trust/source/anchors/
    [doug@localhost bowline]$ sudo update-ca-trust
    [doug@localhost bowline]$ curl https://dockertest/api/foo

But, this won't be any good until you restart docker

    [doug@localhost bowline]$ sudo systemctl restart docker

Now you can login & push:

    docker login -u someuser -p ap<PASSWORD> -e <EMAIL> https://dockertest.com
    docker push dockertest.com/someuser/tagname
{'fraction_non_alphanumeric': 0.08816595945308817, 'fraction_numerical': 0.0014144271570014145, 'mean_word_length': 4.1630170316301705, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '888127', 'n_tokens_mistral': 685, 'n_tokens_neox': 620, 'n_words': 252}