How to create declarative configuration file (kong.yml) using docker during set up?

New to docker and kong. I am having trouble setting kong up using dockers. I couldn’t find a way to create kong.yml during setup. (The Prepare your declarative configuration file step) When I try to run the next set of commands, it gives me a bunch of command errors.

Create (init) configuration.

docker run --rm -w /kong -v $PWD:/kong kong kong config init kong.yml

From your screenshot of the command, you use it is one command with multiple lines.
Copy it all and paste once.

Thank you for helping! There is a new error message when I run that.

You need repalce your actual kong path with “$PWD”.


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ