summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2019-05-06 00:30:07 +0000
committerAchilleas Pipinellis <axil@gitlab.com>2019-05-06 00:30:07 +0000
commitf5f4a00108e296f51db610a68c6637f1d6c7b1cc (patch)
tree93e0fab512875c7f51d7ad9211adc6c3936a231f
parent6ee83f8c5c1c0a3c00cfb36bab4975fb8e9a2d4e (diff)
parent398b5074fcd95391d724332324804da3723e3aea (diff)
downloadgitlab-ce-f5f4a00108e296f51db610a68c6637f1d6c7b1cc.tar.gz
Merge branch 'add-registry-troubleshooting-schema1-docs' into 'master'
Add troubleshooting step for older docker clients to registry documentation Closes omnibus-gitlab#4195 See merge request gitlab-org/gitlab-ce!27917
-rw-r--r--doc/administration/container_registry.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/administration/container_registry.md b/doc/administration/container_registry.md
index 14e2adafb63..4d55f2357c1 100644
--- a/doc/administration/container_registry.md
+++ b/doc/administration/container_registry.md
@@ -659,6 +659,37 @@ Start with a value between `25000000` (25MB) and `50000000` (50MB).
1. Save the file and [restart GitLab][] for the changes to take effect.
+### Supporting older Docker clients
+
+As of GitLab 11.9, we began shipping version 2.7.1 of the Docker container registry, which disables the schema1 manifest by default. If you are still using older Docker clients (1.9 or older), you may experience an error pushing images. See [omnibus-4145](https://gitlab.com/gitlab-org/omnibus-gitlab/issues/4145) for more details.
+
+You can add a configuration option for backwards compatibility.
+
+**For Omnibus installations**
+
+1. Edit `/etc/gitlab/gitlab.rb`:
+
+ ```ruby
+ registry['compatibility_schema1_enabled'] = true
+ ```
+
+1. Save the file and [reconfigure GitLab][] for the changes to take effect.
+
+---
+
+**For installations from source**
+
+1. Edit the YML configuration file you created when you [deployed the registry][registry-deploy]. Add the following snippet:
+
+ ```yaml
+ compatibility:
+ schema1:
+ enabled: true
+ ```
+
+1. Restart the registry for the changes to take affect.
+
+
[ce-18239]: https://gitlab.com/gitlab-org/gitlab-ce/issues/18239
[docker-insecure-self-signed]: https://docs.docker.com/registry/insecure/#use-self-signed-certificates
[reconfigure gitlab]: restart_gitlab.md#omnibus-gitlab-reconfigure