add periodic cleanup of docker registry vm [ci skip]
This commit is contained in:
parent
cd3f7b9cd6
commit
a3682bca61
2 changed files with 1 additions and 0 deletions
1
main.tf
1
main.tf
|
|
@ -225,6 +225,7 @@ module "docker-registry-template" {
|
|||
)
|
||||
)
|
||||
),
|
||||
"( crontab -l 2>/dev/null; echo '0 3 * * 0 /usr/bin/docker exec registry registry garbage-collect /etc/docker/registry/config.yml' ) | crontab -",
|
||||
"docker run -p 5000:5000 -p 5001:5001 -d --restart always --name registry -v /etc/docker-registry/config.yml:/etc/docker/registry/config.yml registry:2"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue