@@ -14,7 +14,7 @@ class Healthcheck(DictType):
14
14
- Empty list: Inherit healthcheck from parent image
15
15
- ``["NONE"]``: Disable healthcheck
16
16
- ``["CMD", args...]``: exec arguments directly.
17
- - ``["CMD-SHELL", command]``: RUn command in the system's
17
+ - ``["CMD-SHELL", command]``: Run command in the system's
18
18
default shell.
19
19
20
20
If a string is provided, it will be used as a ``CMD-SHELL``
@@ -23,9 +23,9 @@ class Healthcheck(DictType):
23
23
should be 0 or at least 1000000 (1 ms).
24
24
timeout (int): The time to wait before considering the check to
25
25
have hung. It should be 0 or at least 1000000 (1 ms).
26
- retries (integer ): The number of consecutive failures needed to
26
+ retries (int ): The number of consecutive failures needed to
27
27
consider a container as unhealthy.
28
- start_period (integer ): Start period for the container to
28
+ start_period (int ): Start period for the container to
29
29
initialize before starting health-retries countdown in
30
30
nanoseconds. It should be 0 or at least 1000000 (1 ms).
31
31
"""
@@ -53,6 +53,8 @@ def test(self):
53
53
54
54
@test .setter
55
55
def test (self , value ):
56
+ if isinstance (value , six .string_types ):
57
+ value = ["CMD-SHELL" , value ]
56
58
self ['Test' ] = value
57
59
58
60
@property
0 commit comments