Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
systemd-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
silver-platter
systemd-docker
Commits
e21afab2
Commit
e21afab2
authored
10 years ago
by
Anand Patil
Browse files
Options
Downloads
Patches
Plain Diff
Detach argument goes to systemd-docker, the Docker detach argument is always true as before
parent
15ac16db
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.go
+1
-1
1 addition, 1 deletion
main.go
with
1 addition
and
1 deletion
main.go
+
1
−
1
View file @
e21afab2
...
...
@@ -83,6 +83,7 @@ func parseContext(args []string) (*Context, error) {
flags
.
BoolVar
(
&
c
.
Notify
,
[]
string
{
"n"
,
"-notify"
},
false
,
"setup systemd notify for container"
)
flags
.
BoolVar
(
&
c
.
Env
,
[]
string
{
"e"
,
"-env"
},
false
,
"inherit environment variable"
)
flags
.
Var
(
&
flCgroups
,
[]
string
{
"c"
,
"-cgroups"
},
"cgroups to take ownership of or 'all' for all cgroups available"
)
flags
.
BoolVar
(
&
c
.
Detach
,
[]
string
{
"d"
,
"-detach"
},
false
,
"detach from container"
)
err
:=
flags
.
Parse
(
args
)
if
err
!=
nil
{
...
...
@@ -132,7 +133,6 @@ func parseContext(args []string) (*Context, error) {
c
.
NotifySocket
=
os
.
Getenv
(
"NOTIFY_SOCKET"
)
c
.
Args
=
newArgs
c
.
Cgroups
=
flCgroups
.
GetAll
()
c
.
Detach
=
foundD
for
_
,
val
:=
range
c
.
Cgroups
{
if
val
==
"all"
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment