mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-22 21:50:47 -05:00
fix(restart): show how to recover after startup fails (#73)
When restart has removed the old container and the new one does not come up, it now prints a start command with the same port, image, persist dir, services and namespace. When the new container is running but did not become ready, it says to check logs and run wait instead, because start refuses a running container. The commands name their tree, because a bare floci follows the configured default product. They keep a typed --endpoint, and --persist prints the directory a local daemon would mount, so a retry from another directory finds the same state. Signed-off-by: Hector Ventura <hectorvent@gmail.com>
This commit is contained in:
1 parent
763bb2d854
commit
a319e2d242
9 files changed
+262
-7
No files matched your search
@@ -125,7 +125,7 @@ public class GlobalOptions {
|
||||
}
|
||||
|
||||
// POSIX single quotes: the hints are shell command lines like the CLI's other 'Run ...' hints.
|
||||
private static String shellWord(String value) {
|
||||
public static String shellWord(String value) {
|
||||
if (PLAIN_WORD.matcher(value).matches()) return value;
|
||||
return "'" + value.replace("'", "'\\''") + "'";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user