from flask import Flask, make_response, jsonify app = Flask(__name__) @app.route('/_ping') @app.route('/v1/_ping') def ping(): response = make_response('true', 200); response.headers['X-Docker-Registry-Version'] = '0.6.0' return response