Commit 97d3756c by Serge Hallyn Committed by Daniel Lezcano

If a container is already running, say so in error msgs.

Otherwise there is no clear indication to the user why the container startup failed. Signed-off-by: 's avatarSerge Hallyn <serge@hallyn.com> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 4759162d
......@@ -271,7 +271,12 @@ extern int lxc_command_mainloop_add(const char *name,
fd = lxc_af_unix_open(path, SOCK_STREAM, 0);
if (fd < 0) {
ERROR("failed to create the command service point");
ERROR("failed (%d) to create the command service point %s", errno, offset);
if (errno == EADDRINUSE) {
ERROR("##");
ERROR("# The container appears to be already running!");
ERROR("##");
}
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment