in files/gitlab-ctl-commands/lib/registry/registry_database.rb [171:189]
def self.continue?(needs_stop, needs_read_only)
if needs_stop && running?
puts 'WARNING: Command cannot run while the container registry is running. ' \
'Stop the registry before proceeding? (y/n)'.color(:yellow)
if $stdin.gets.chomp.casecmp('y').zero?
stop!
else
puts "Exiting..."
exit 1
end
end
return unless running? && needs_read_only && !read_only?
puts 'Command requires the container registry to be in read-only mode. Exiting...'
exit 1
end