config := execdriver.ProcessConfig{ User: "myuser", Cmd: []string{"/bin/bash", "-c", "echo hello world"}, Env: []string{"VAR1=value1", "VAR2=value2"}, WorkingDir: "/home/myuser", } // use the config to start the process
config := execdriver.ProcessConfig{ Cmd: []string{"python", "app.py"}, Privileged: true, CapAdd: []string{"NET_ADMIN", "SYS_ADMIN"}, } // use the config to start the processThis example creates a ProcessConfig instance to execute a Python script with elevated privileges. It sets the command, allows the process to run with extra capabilities such as "NET_ADMIN" and "SYS_ADMIN", and sets the "Privileged" field to true. Overall, ProcessConfig is a useful struct for configuring and starting processes within Docker containers.