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
This commit is contained in:
Fabricio Henrique Ramos 2022-02-01 19:45:25 -03:00
parent 45e97910d5
commit a9bbdc4d55
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,30 @@
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

View File

@ -1,3 +1,4 @@
0001-update-paths-and-service.patch
0002-no-gecos.patch
0003-Override-docker-registry-service.patch
0004-Remove-User-directive-from-unit-file.patch