Skip to content

Commit

Permalink
Explicitly disable tls to avoid startup delays
Browse files Browse the repository at this point in the history
Currently the daemon will slow startup to print some warnings
if we don't include this flag. Future releases will require this
flag in order to start insecure mode at all.

Change-type: patch
Signed-off-by: Kyle Harding <[email protected]>
  • Loading branch information
klutchell committed Aug 4, 2021
1 parent dc1dc5e commit dbe0410
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/preload.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@

DOCKER_HOST = "tcp://0.0.0.0:{}".format(os.environ.get("DOCKER_PORT") or 8000)
docker = partial(_docker, "--host", DOCKER_HOST, **SH_OPTS)
DOCKER_TLS = "false"

log = getLogger(__name__)
log.setLevel(INFO)
Expand Down Expand Up @@ -538,6 +539,7 @@ def start_docker_daemon(storage_driver, docker_dir):
running_dockerd = dockerd(
storage_driver=storage_driver,
data_root=docker_dir,
tls=DOCKER_TLS,
host=DOCKER_HOST,
_bg=True,
**SH_OPTS,
Expand Down

0 comments on commit dbe0410

Please sign in to comment.