public JToken Unfreeze(int timeout = 30) { ContainerStatePut payload = new ContainerStatePut() { Action = "unfreeze", Timeout = timeout, }; JToken response = API.Put($"/{Client.Version}/container/{Name}/state", payload); return(API.WaitForOperationComplete(response)); }
public JToken Restart(int timeout = 30, bool force = false) { ContainerStatePut payload = new ContainerStatePut() { Action = "restart", Timeout = timeout, Force = force, }; JToken response = API.Put($"/{Client.Version}/container/{Name}/state", payload); return(API.WaitForOperationComplete(response)); }