integ/kubernetes/docker-distribution/debian/deb_patches/0004-Remove-User-directive-from-unit-file.patch
Fabricio Henrique Ramos a9bbdc4d55 Debian: Remove user directive from docker-registry service
By removing:
User=docker-registry
the service now runs as user root which allows ansible to use the
registry without hitting permissions issues.

Test Plan:

Pass: Execute ansible playbook in Debian OS
Pass: Service is active (running) after ansible playbook

Story: 2009101
Task: 44419

Signed-off-by: Fabricio Henrique Ramos <fabriciohenrique.ramos@windriver.com>
Change-Id: I06f3b0ed19d60400630bd01d3ae115fe44b6582b
2022-02-15 14:57:44 -03:00

31 lines
1020 B
Diff

From 1f52f7857bdfd54af3409f0dc4a56ed866582327 Mon Sep 17 00:00:00 2001
From: Fabricio Henrique Ramos <fabriciohenrique.ramos@windriver.com>
Date: Fri, 28 Jan 2022 16:31:00 -0300
Subject: [PATCH] Remove User directive from unit file
By removing:
User=docker-registry
the service now runs as user root which allows ansible to use the
registry without hitting permissions issues.
Signed-off-by: Fabricio Henrique Ramos <fabriciohenrique.ramos@windriver.com>
---
debian/docker-registry.service | 1 -
1 file changed, 1 deletion(-)
diff --git a/debian/docker-registry.service b/debian/docker-registry.service
index a2feaa6..a4652b3 100644
--- a/debian/docker-registry.service
+++ b/debian/docker-registry.service
@@ -3,7 +3,6 @@ Description=the Docker toolset to pack, ship, store, and deliver content
After=network.target
[Service]
-User=docker-registry
Type=simple
Environment=REGISTRY_STORAGE_DELETE_ENABLED=true
ExecStart=/usr/bin/docker-registry serve /etc/docker-distribution/registry/config.yml
--
2.17.1