Describe the bug
When running the preview-docs command using the Docker image, it doesn't respond to ctrl+c to exit.
To Reproduce
Steps to reproduce the behaviour:
-
Create a valid openapi.yaml file.
-
Run this command:
docker run --rm -p 8080:8080 -v $PWD:/spec redocly/cli preview-docs \
openapi.yaml --use-community-edition --host 0.0.0.0
-
Try to exit by pressing ctrl+c as you would do with the npm version
-
Note that redocly hasn't exited.
Note, I have also tried adding the -t and -i flags to the docker command.
Expected behaviour
The docker container exits and control is returned to the shell in the terminal.
i.e. I expected it to behave in the same way as docker run redis does when you press ctrl+c.
Redocly Version(s)
$ docker run --rm redocly/cli --version
1.22.0
Node.js Version(s)
Whatever is in the Docker image.
OS, environment
MacOS 14.6.1 (Apple Silicon). Docker Desktop 4.31.0 (153195).
Describe the bug
When running the
preview-docscommand using the Docker image, it doesn't respond toctrl+cto exit.To Reproduce
Steps to reproduce the behaviour:
Create a valid
openapi.yamlfile.Run this command:
Try to exit by pressing
ctrl+cas you would do with the npm versionNote that redocly hasn't exited.
Note, I have also tried adding the
-tand-iflags to thedockercommand.Expected behaviour
The docker container exits and control is returned to the shell in the terminal.
i.e. I expected it to behave in the same way as
docker run redisdoes when you pressctrl+c.Redocly Version(s)
Node.jsVersion(s)Whatever is in the Docker image.
OS, environment
MacOS 14.6.1 (Apple Silicon). Docker Desktop 4.31.0 (153195).