Skip to content

Commit

Permalink
Warn if both remote and docker-in-docker are set.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexhuszagh committed Jul 28, 2022
1 parent 843ced9 commit df7946f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/docker/remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df7946f

Please sign in to comment.