Otherwise there is no clear indication to the user why the container
startup failed.
Signed-off-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
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;
}