Skip to content

Z mode not longer valid for volume mounting

Summary

The following volume specification is no longer valid /mnt/shared:/mnt/shared:z

This is also reported in:

Steps to reproduce

Add any file/dir to the volumes section inside of [runner.docker] with the Z/z mode

Actual behavior

Volume mounted

Expected behavior

Builds failes

Relevant logs and/or screenshots

job log
ERROR: Preparation failed: invalid volume specification: "/tmp/gitlab/runner/Gcloud/service_accont_key_file.json:/root/.config/gcloud/service_accont_key_file.json:z"
Will be retried in 3s ...
ERROR: Preparation failed: invalid volume specification: "/tmp/gitlab/runner/Gcloud/service_accont_key_file.json:/root/.config/gcloud/service_accont_key_file.json:z"
Will be retried in 3s ...
ERROR: Preparation failed: invalid volume specification: "/tmp/gitlab/runner/Gcloud/service_accont_key_file.json:/root/.config/gcloud/service_accont_key_file.json:z"
Will be retried in 3s ...
ERROR: Job failed (system failure): invalid volume specification: "/tmp/gitlab/runner/Gcloud/service_accont_key_file.json:/root/.config/gcloud/service_accont_key_file.json:z"

Environment description

config.toml contents
[[runners]]
  name = "docker"
  url = "xxxxxx"
  token = "xxxxx"
  executor = "docker"
  [runners.docker]
    tls_verify = false
    image = "alpine:3.9"
    privileged = false
    disable_entrypoint_overwrite = false
    oom_kill_disable = false
    disable_cache = false
    volumes = ["/cache", "/tmp/gitlab/runner/Gcloud/service_accont_key_file.json:/root/.config/gcloud/service_accont_key_file.json:z", "/tmp/gitlab/runner/config/config.json:/root/.docker/config.json:ro", "/tmp/gitlab/runner/ssh:/root/.ssh:ro", "/tmp/gitlab/runner/mvn/settings.xml:/root/.m2/settings.xml:ro"]
    shm_size = 0
    pull_policy = 'never'
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]

Used GitLab Runner version