You are here
Hi!
I try to install docker in the GitLab VM.
Because I want to create docker images with the gitlab-runner.
But this is not possible because docker show me the following error if I try to run a test on the console:
root@CT100 ~# sudo docker run hello-world
docker: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: rootfs_linux.go:60: mounting "proc" to r
ootfs at "/proc" caused: permission denied: unknown.
ERRO[0000] error waiting for container: context canceled
In GitLab it looks like this:
Using Docker executor with image docker:19.03.1 ...
5 ERROR: Preparation failed: adding cache volume: set volume permissions: running permission container "7a4a3f67de96f252f04ffd9f0ab873b3721208449f779045a0b8c7f7226f1137" for volume "runner-fxbstpw1-project-3-concurrent-0-cache-3c3f060a0374fc8bc39395164f415a70": starting permission container: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: rootfs_linux.go:60: mounting "proc" to rootfs at "/proc" caused: permission denied: unknown (linux_set.go:105:0s)
Is there any other way to generate docker-images in Turnkey GitLab on Proxmox?
Docker doesn't work in default LXC container.
Your output suggests that you are running in a container, not a VM. If you are using Proxmox, then I suggest installing the GitLab appliance as a proper VM via the ISO. Alternatively, it might work if your LXC container is privileged, with nesting enabled.
Hi!
Hi!
Yes, you are right, it is a LXC container and I could resolve the problem with the privileged options.
Thank you.
Add new comment