Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to enable gitlab runner to use local docker images

open the file config.toml in /etc/gitlab-runner using sudo
and add the follwoing line to the docker runner
pull_policy = "if-not-present"

Below is an example of config.toml I have on my machine 
$ sudo vi /etc/gitlab-runner/config.toml

concurrent = 1
check_interval = 0

[session_server]
  session_timeout = 1800

[[runners]]
  name = "docker_dd_online"
  url = "https://gitlab.com/"
  token = "**********"
  executor = "docker"
  [runners.custom_build_dir]
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]
    [runners.cache.azure]
  [runners.docker]
    tls_verify = false
    image = "local_docker_image:latest"
    privileged = false
    disable_entrypoint_overwrite = false
    oom_kill_disable = false
    disable_cache = false
    volumes = ["/cache"]
    shm_size = 0
    pull_policy = "if-not-present"
Comment

PREVIOUS NEXT
Code Example
Shell :: git rm --cached 
Shell :: make current commit head 
Shell :: install psql mac 
Shell :: install nix macos 
Shell :: bash read file content 
Shell :: current time linux 
Shell :: git push disable hooks 
Shell :: hide hidden files mac 
Shell :: install redis 
Shell :: install microsoft edge terminal 
Shell :: docker image tar import 
Shell :: read file line loop in bash 
Shell :: remi repo 
Shell :: reboot with systemctl command 
Shell :: Not an editor command: LspInstall 
Shell :: unzip file to folder 
Shell :: open tar.Z files 
Shell :: how to install certbot on ubuntu 
Shell :: pdf to images imagemagick 
Shell :: how to install node using nvm 
Shell :: gnome 42 force dark mode 
Shell :: how to get environment variables in powershell 
Shell :: brew check installed packages version 
Shell :: ubuntu change user 
Shell :: make a desktop file in ubuntu 
Shell :: command to variable bash 
Shell :: dukto for ubuntu download 
Shell :: delete a branch git 
Shell :: fastlane match update certificate 
Shell :: how to install image app in linux using terminal 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =