To use a remote container engine (like a remote Docker daemon or Podman) instead of local bind mounts, set the CROSS_REMOTE=1 environment variable. In this mode, cross copies data from the local filesystem into data volumes on the remote host and symlinks them to ensure paths match the host's structure.
Docker Remote
If using Docker, you can specify the DOCKER_HOST. If you use Docker contexts, you do not need to provide DOCKER_HOST manually.
Podman Remote
This works with podman and podman-remote. For podman-remote, ensure the connection is added to podman. If using an authenticated connection, set it to the default identity to avoid password prompts.
cross automatically detects if podman or podman-remote is being used and adds the --remote flag to the engine command if necessary.
# Example using Docker remote
CROSS_REMOTE=1 DOCKER_HOST=tcp://docker:2375/ cross build --target arm-unknown-linux-gnueabihf
# Example using Podman remote
podman system connection add cross tcp://localhost:8080 --default=true
CROSS_REMOTE=1 CROSS_CONTAINER_ENGINE=podman cross build --target arm-unknown-linux-gnueabihf