From df7946f07d467f61800dcc7fa0910d85b8ec461e Mon Sep 17 00:00:00 2001 From: Alex Huszagh Date: Thu, 28 Jul 2022 03:07:07 -0500 Subject: [PATCH] Warn if both remote and docker-in-docker are set. --- src/docker/remote.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/docker/remote.rs b/src/docker/remote.rs index 23215f638..8394beefc 100644 --- a/src/docker/remote.rs +++ b/src/docker/remote.rs @@ -865,6 +865,10 @@ pub(crate) fn run( let mount_prefix = MOUNT_PREFIX; + if options.in_docker() { + msg_info.warn("remote and docker-in-docker are unlikely to work together when using cross. remote cross uses data volumes, so docker-in-docker should not be required.")?; + } + // the logic is broken into the following steps // 1. get our unique identifiers and cleanup from a previous run. // 2. if not using persistent volumes, create a data volume