File tree Expand file tree Collapse file tree 1 file changed +0
-36
lines changed Expand file tree Collapse file tree 1 file changed +0
-36
lines changed Original file line number Diff line number Diff line change @@ -91,42 +91,6 @@ Deleting a container MUST delete the associated namespaces and resources associa
9191Once a container is deleted, its ` id `  MAY be used by subsequent containers.
9292Attempting to stop a container that is not running MUST have no effect on the container and MUST generate an error.
9393
94- ### Exec  
95- 
96- ` exec <container-id> <path-to-json> ` 
97- 
98- This operation MUST generate an error if it is not provided the container ID and a path to the JSON describing the process to start.
99- The JSON describing the new process MUST adhere to the [ Process configuration] ( config.md#process-configuration )  definition.
100- This operation MUST create a new process within the scope of the container.
101- If the container is not running then this operation MUST have no effect on the container and MUST generate an error.
102- Executing this operation multiple times MUST result in a new process each time.
103- 
104- #### Example  
105- 
106- ``` json 
107- {
108-     "terminal" : true ,
109-     "user" : {
110-         "uid" : 0 ,
111-         "gid" : 0 ,
112-         "additionalGids" : null 
113-     },
114-     "args" : [
115-         " /bin/sleep"  ,
116-         " 60" 
117-     ],
118-     "env" : [
119-         " version=1.0" 
120-     ],
121-     "cwd" : " ..."  ,
122- }
123- ``` 
124- 
125- This specification does not mandate the name of this JSON file.
126- See the specification of the ` config.json `  file for the definition of these fields.
127- The stopping, or exiting, of these secondary process MUST have no effect on the state of the container.
128- In other words, a container (and its PID 1 process) MUST NOT be stopped due to the exiting of a secondary process.
129- 
13094## Hooks  
13195
13296Many of the operations specified in this specification have "hooks" that allow for additional actions to be taken before or after each operation.
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments