示例#1
0
        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));
        }
示例#2
0
        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));
        }