Commit 3728ed35 by Serge Hallyn Committed by GitHub

Merge pull request #1381 from brauner/2017-01-11/fix_volatile_containers

tools/lxc-start: remove c->is_defined(c) check
parents e3cca068 72c78e0e
...@@ -286,10 +286,11 @@ int main(int argc, char *argv[]) ...@@ -286,10 +286,11 @@ int main(int argc, char *argv[])
} }
} }
if (!c->is_defined(c)) { /* We do not check here whether the container is defined, because we
fprintf(stderr, "Error: container %s is not defined\n", c->name); * support volatile containers. Which means the container does not need
goto out; * to be created for it to be started. You can just pass a configuration
} * file as argument and start the container right away.
*/
if (!c->may_control(c)) { if (!c->may_control(c)) {
fprintf(stderr, "Insufficent privileges to control %s\n", c->name); fprintf(stderr, "Insufficent privileges to control %s\n", c->name);
......
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