@@ -109,7 +109,6 @@ var (
109109 ErrContainerStart = errors .New ("The container failed to start. Unkown error" )
110110 ErrContainerStartTimeout = errors .New ("The container failed to start due to timed out." )
111111 ErrInvalidWorikingDirectory = errors .New ("The working directory is invalid. It needs to be an absolute path." )
112- ErrConflictTtySigProxy = errors .New ("TTY mode (-t) already imply signal proxying (-sig-proxy)" )
113112 ErrConflictAttachDetach = errors .New ("Conflicting options: -a and -d" )
114113 ErrConflictDetachAutoRemove = errors .New ("Conflicting options: -rm and -d" )
115114)
@@ -167,7 +166,7 @@ func ParseRun(args []string, capabilities *Capabilities) (*Config, *HostConfig,
167166 flNetwork := cmd .Bool ("n" , true , "Enable networking for this container" )
168167 flPrivileged := cmd .Bool ("privileged" , false , "Give extended privileges to this container" )
169168 flAutoRemove := cmd .Bool ("rm" , false , "Automatically remove the container when it exits (incompatible with -d)" )
170- flSigProxy := cmd .Bool ("sig-proxy" , false , "Proxify all received signal to the process (even in non-tty mode)" )
169+ cmd .Bool ("sig-proxy" , true , "Proxify all received signal to the process (even in non-tty mode)" )
171170 cmd .String ("name" , "" , "Assign a name to the container" )
172171
173172 if capabilities != nil && * flMemory > 0 && ! capabilities .MemoryLimit {
@@ -212,9 +211,6 @@ func ParseRun(args []string, capabilities *Capabilities) (*Config, *HostConfig,
212211 if * flWorkingDir != "" && ! path .IsAbs (* flWorkingDir ) {
213212 return nil , nil , cmd , ErrInvalidWorikingDirectory
214213 }
215- if * flTty && * flSigProxy {
216- return nil , nil , cmd , ErrConflictTtySigProxy
217- }
218214 if * flDetach && * flAutoRemove {
219215 return nil , nil , cmd , ErrConflictDetachAutoRemove
220216 }
0 commit comments