• Usage: Sets build-time variables.

  • Command:

    docker build --build-arg MY_ARG=value -t my-image .
    
    
    • This command passes MY_ARG with the value value to the Docker build process.