Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
3728ed35
Commit
3728ed35
authored
Jan 11, 2017
by
Serge Hallyn
Committed by
GitHub
Jan 11, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1381 from brauner/2017-01-11/fix_volatile_containers
tools/lxc-start: remove c->is_defined(c) check
parents
e3cca068
72c78e0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lxc_start.c
src/lxc/tools/lxc_start.c
+5
-4
No files found.
src/lxc/tools/lxc_start.c
View file @
3728ed35
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment