Skip to main content

get_default_docker_image

Function get_default_docker_image 

Source
pub fn get_default_docker_image() -> String
Expand description

Get the default Docker image based on the host operating system Returns an image that matches the current OS as closely as possible:

  • macOS: Uses alpine (since macOS cannot run in Docker)
  • Ubuntu/Debian: Uses ubuntu:latest
  • Arch Linux: Uses archlinux:latest
  • Other Linux: Uses the detected distro or alpine as fallback
  • Windows: Uses alpine (Windows containers have limited support)