d863a1e2a3
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>
14 lines
392 B
Desktop File
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
|