docker executor permission denied problem
I tried to run gitlab runner with docker executor. I have lxd container running ubuntu server 18.04 and registered gitlab runner in my gitlab
gitlab-runner --version
Version: 11.2.0~beta.612.g1651e1f6
Git revision: 1651e1f6
Git branch: master
GO version: go1.8.7
Built: 2018-07-27T09:03:48+00:00
OS/Arch: linux/amd64
docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 1
Server Version: 18.06.0-ce
Storage Driver: vfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: d64c661f1d51c48782c9cec8fda7604785f93587
runc version: 69663f0bd4b60df09991c08812a60108003fa340
init version: fec3683
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.15.0-29-generic
Operating System: Ubuntu 18.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 16
Total Memory: 31.4GiB
Name: gitlab-runner-1
ID: 4HY7:UONE:7BL3:23JA:Z2B6:J53Z:WLBK:VTCT:K3MO:7ZF7:K5YY:UDWU
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No swap limit support
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
when I try to run job I have permission problem error
Running with gitlab-runner 11.2.0~beta.612.g1651e1f6 (1651e1f6)
on gitlab-runner-1 6901415f
Using Docker executor with image php:7.2 ...
ERROR: Failed to create container volume for /builds/TEM Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"proc\\\" to rootfs \\\"/var/lib/docker/vfs/dir/7de5fd97562d1907715d96be0d65b06aa7d4837e93f3d4c5cc817c89748d28bb\\\" at \\\"/proc\\\" caused \\\"permission denied\\\"\"": unknown (executor_docker.go:413:1s)
ERROR: Preparation failed: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"proc\\\" to rootfs \\\"/var/lib/docker/vfs/dir/7de5fd97562d1907715d96be0d65b06aa7d4837e93f3d4c5cc817c89748d28bb\\\" at \\\"/proc\\\" caused \\\"permission denied\\\"\"": unknown (executor_docker.go:413:1s)
could anybody help me to sort this out ?