Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for DOCKER_RUN_OPTIONS (0.18 sec)

  1. common/scripts/run.sh

    # shellcheck disable=SC1090,SC1091
    source "${WD}/setup_env.sh"
    
    
    MOUNT_SOURCE="${MOUNT_SOURCE:-${PWD}}"
    MOUNT_DEST="${MOUNT_DEST:-/work}"
    
    read -ra DOCKER_RUN_OPTIONS <<< "${DOCKER_RUN_OPTIONS:-}"
    
    [[ -t 1 ]] && DOCKER_RUN_OPTIONS+=("-it")
    [[ ${UID} -ne 0 ]] && DOCKER_RUN_OPTIONS+=(-u "${UID}:${DOCKER_GID}")
    
    # $CONTAINER_OPTIONS becomes an empty arg when quoted, so SC2086 is disabled for the
    # following command only
    Shell Script
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Aug 11 02:34:11 GMT 2023
    - 2.2K bytes
    - Viewed (1)
Back to top