Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

Commit e21afab

Browse files
committed
Detach argument goes to systemd-docker, the Docker detach argument is always true as before
1 parent 15ac16d commit e21afab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ func parseContext(args []string) (*Context, error) {
8383
flags.BoolVar(&c.Notify, []string{"n", "-notify"}, false, "setup systemd notify for container")
8484
flags.BoolVar(&c.Env, []string{"e", "-env"}, false, "inherit environment variable")
8585
flags.Var(&flCgroups, []string{"c", "-cgroups"}, "cgroups to take ownership of or 'all' for all cgroups available")
86+
flags.BoolVar(&c.Detach, []string{"d", "-detach"}, false, "detach from container")
8687

8788
err := flags.Parse(args)
8889
if err != nil {
@@ -132,7 +133,6 @@ func parseContext(args []string) (*Context, error) {
132133
c.NotifySocket = os.Getenv("NOTIFY_SOCKET")
133134
c.Args = newArgs
134135
c.Cgroups = flCgroups.GetAll()
135-
c.Detach = foundD
136136

137137
for _, val := range c.Cgroups {
138138
if val == "all" {

0 commit comments

Comments
 (0)