Skip to content

Commit d124d68

Browse files
committed
Makes Docker directly handle the SIGINT signal
1 parent b605d52 commit d124d68

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ RUN apt-get update && \
9191

9292
WORKDIR /usr/src/app
9393

94+
STOPSIGNAL SIGINT
95+
9496
# Default HTTP port for web interface and agent beacons over HTTP
9597
EXPOSE 8888
9698

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ To gracefully terminate your docker container, do the following:
129129
# Find the container ID for your docker container running Caldera
130130
docker ps
131131

132-
# Send interrupt signal, e.g. "docker kill --signal=SIGINT 5b9220dd9c0f"
133-
docker kill --signal=SIGINT [container ID]
132+
# Stop the container
133+
docker stop [container ID]
134134
```
135135

136136
## Contributing

0 commit comments

Comments
 (0)