Volume not mounted in Docker container with gitlab-runner
I try to mount a directory from the OS to the gitlab-runner Docker container and don't see the mounted directory in the filesystem in the container. I enabled debug logging in the config.toml file, restarted container with gitlab-runner and see the correct values in the volume section in the log of gitlablab-runner container, but there is no folder in the container file system:
volumes:
- /cache
- /home/adm2008/myfold:/www
I need help to understand why the folder from the OS is not mounted in Docker container.
Here's the content of my /srv/gitlab-runner/config/config.toml file:
concurrent = 1
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "clean runner"
url = "https://gitlab.com/"
token = "nBxn1qhRmHzKsskki-Jz"
executor = "docker"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
[runners.docker]
tls_verify = false
image = "ruby:2.7"
privileged = false
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache", "/home/adm2008/myfold:/www"]
shm_size = 0