From df8c9c3e768ecee87e98de7ea61333238e09a1ff Mon Sep 17 00:00:00 2001 From: Lucile Date: Wed, 14 Jun 2017 18:55:59 +0200 Subject: [PATCH] Add bash information about return codes. (#3547) * Add bash information about return codes. * Update shell return values after shin-'s comment --- compose/reference/up.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compose/reference/up.md b/compose/reference/up.md index 32ee10e67c..5e092f5d50 100644 --- a/compose/reference/up.md +++ b/compose/reference/up.md @@ -50,3 +50,7 @@ flag. If you want to force Compose to stop and recreate all containers, use the `--force-recreate` flag. + +If the command encounters an error, it returns `1`. +If user press `ctrl` + `C`, causing stop of the containers, it returns `0`. +If user press `ctrl` + `C` two time, forcing kill of containers, it returns `2`.