How to restart Kong Gateway in a Docker container

Uses: Kong Gateway
Related Documentation
Incompatible with
konnect
Tags
Minimum Version
Kong Gateway - 3.4
TL;DR

Use kong reload.

Prerequisites

This tutorial requires Kong Gateway Enterprise. If you don’t have Kong Gateway set up yet, you can use the quickstart script with an enterprise license to get an instance of Kong Gateway running almost instantly.

  1. Export your license to an environment variable:

     export KONG_LICENSE_DATA='LICENSE-CONTENTS-GO-HERE'
    
  2. Run the quickstart script:

     curl -Ls https://get.konghq.com/quickstart | bash -s -- -e KONG_LICENSE_DATA 
    

    Once Kong Gateway is ready, you will see the following message:

     Kong Gateway Ready
    

Restart a Kong Gateway Docker container

To restart a Kong Gateway container without killing the container, run kong reload from within the container.

FAQs

kong restart kills the pid, which will kill the container.

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!