Skip to content
Snippets Groups Projects
Commit e21afab2 authored by Anand Patil's avatar Anand Patil
Browse files

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
......@@ -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" {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment