integ/kubernetes/docker-distribution/centos/files/docker-distribution.service
Jerry Sun d863a1e2a3 Enable Local Docker Registry Image Delete
Change config file to allow controller local Docker registry images to
be deleted.

Story: 2002840
Task: 28621

Change-Id: I636a8e26f92c50ebc2222292cd21f7e7784ed2ac
Signed-off-by: Jerry Sun <jerry.sun@windriver.com>
2019-05-09 15:26:30 -04:00

14 lines
392 B
Desktop File

[Unit]
Description=v2 Registry server for Docker
[Service]
Type=simple
Environment=REGISTRY_STORAGE_DELETE_ENABLED=true
ExecStart=/usr/bin/registry serve /etc/docker-distribution/registry/config.yml
Restart=on-failure
ExecStartPost=/bin/bash -c 'echo $MAINPID > /var/run/docker-distribution.pid'
ExecStopPost=/bin/rm -f /var/run/docker-distribution.pid
[Install]
WantedBy=multi-user.target