File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -564,6 +564,9 @@ def create_container_config(
564
564
if isinstance (command , six .string_types ):
565
565
command = shlex .split (str (command ))
566
566
567
+ if isinstance (entrypoint , six .string_types ):
568
+ entrypoint = shlex .split (str (entrypoint ))
569
+
567
570
if isinstance (environment , dict ):
568
571
environment = [
569
572
six .text_type ('{0}={1}' ).format (k , v )
Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ def test_create_container_with_ports(self):
428
428
def test_create_container_with_entrypoint (self ):
429
429
try :
430
430
self .client .create_container ('busybox' , 'hello' ,
431
- entrypoint = 'cowsay' )
431
+ entrypoint = 'cowsay entry ' )
432
432
except Exception as e :
433
433
self .fail ('Command should not raise exception: {0}' .format (e ))
434
434
@@ -443,7 +443,7 @@ def test_create_container_with_entrypoint(self):
443
443
"AttachStdout": true, "OpenStdin": false,
444
444
"StdinOnce": false,
445
445
"NetworkDisabled": false,
446
- "Entrypoint": "cowsay"}''' ))
446
+ "Entrypoint": [ "cowsay", "entry"] }''' ))
447
447
self .assertEqual (args [1 ]['headers' ],
448
448
{'Content-Type' : 'application/json' })
449
449
You can’t perform that action at this time.
0 commit comments