26
26
27
27
log = logging .getLogger (__name__ )
28
28
29
+ INSECURE_SSL_WARNING = """
30
+ Warning: --allow-insecure-ssl is deprecated and has no effect.
31
+ It will be removed in a future version of Compose.
32
+ """
33
+
29
34
30
35
def main ():
31
36
setup_logging ()
@@ -232,13 +237,13 @@ def pull(self, project, options):
232
237
Usage: pull [options] [SERVICE...]
233
238
234
239
Options:
235
- --allow-insecure-ssl Allow insecure connections to the docker
236
- registry
240
+ --allow-insecure-ssl Deprecated - no effect.
237
241
"""
238
- insecure_registry = options ['--allow-insecure-ssl' ]
242
+ if options ['--allow-insecure-ssl' ]:
243
+ log .warn (INSECURE_SSL_WARNING )
244
+
239
245
project .pull (
240
246
service_names = options ['SERVICE' ],
241
- insecure_registry = insecure_registry
242
247
)
243
248
244
249
def rm (self , project , options ):
@@ -280,8 +285,7 @@ def run(self, project, options):
280
285
Usage: run [options] [-e KEY=VAL...] SERVICE [COMMAND] [ARGS...]
281
286
282
287
Options:
283
- --allow-insecure-ssl Allow insecure connections to the docker
284
- registry
288
+ --allow-insecure-ssl Deprecated - no effect.
285
289
-d Detached mode: Run container in the background, print
286
290
new container name.
287
291
--entrypoint CMD Override the entrypoint of the image.
@@ -296,7 +300,8 @@ def run(self, project, options):
296
300
"""
297
301
service = project .get_service (options ['SERVICE' ])
298
302
299
- insecure_registry = options ['--allow-insecure-ssl' ]
303
+ if options ['--allow-insecure-ssl' ]:
304
+ log .warn (INSECURE_SSL_WARNING )
300
305
301
306
if not options ['--no-deps' ]:
302
307
deps = service .get_linked_names ()
@@ -306,7 +311,6 @@ def run(self, project, options):
306
311
service_names = deps ,
307
312
start_deps = True ,
308
313
allow_recreate = False ,
309
- insecure_registry = insecure_registry ,
310
314
)
311
315
312
316
tty = True
@@ -344,7 +348,6 @@ def run(self, project, options):
344
348
container = service .create_container (
345
349
quiet = True ,
346
350
one_off = True ,
347
- insecure_registry = insecure_registry ,
348
351
** container_options
349
352
)
350
353
except APIError as e :
@@ -453,8 +456,7 @@ def up(self, project, options):
453
456
Usage: up [options] [SERVICE...]
454
457
455
458
Options:
456
- --allow-insecure-ssl Allow insecure connections to the docker
457
- registry
459
+ --allow-insecure-ssl Deprecated - no effect.
458
460
-d Detached mode: Run containers in the background,
459
461
print new container names.
460
462
--no-color Produce monochrome output.
@@ -468,7 +470,9 @@ def up(self, project, options):
468
470
when attached or when containers are already
469
471
running. (default: 10)
470
472
"""
471
- insecure_registry = options ['--allow-insecure-ssl' ]
473
+ if options ['--allow-insecure-ssl' ]:
474
+ log .warn (INSECURE_SSL_WARNING )
475
+
472
476
detached = options ['-d' ]
473
477
474
478
monochrome = options ['--no-color' ]
@@ -487,7 +491,6 @@ def up(self, project, options):
487
491
start_deps = start_deps ,
488
492
allow_recreate = allow_recreate ,
489
493
force_recreate = force_recreate ,
490
- insecure_registry = insecure_registry ,
491
494
do_build = not options ['--no-build' ],
492
495
timeout = timeout
493
496
)
0 commit comments