docker-reverse-proxy-multi-domain
docker-reverse-proxy-multi-domain copied to clipboard
Docker-compose up error: resulting devices cgroup doesn't match target mode: unknown
Hi @carlosvin
I am trying to run the example, but I get the following output from docker-compose up:
ERROR: for docker-reverse-proxy-multi-domain_nginx-proxy_1 Cannot start service nginx-proxy: OCI runtime create failed: container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: process_linux.go:422: setting cgroup config for procHooks process caused: resultingStarting docker-reverse-proxy-multi-domain_b_1 ... done
ERROR: for nginx-proxy Cannot start service nginx-proxy: OCI runtime create failed: container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: process_linux.go:422: setting cgroup config for procHooks process caused: resulting devices cgroup doesn't match target mode: unknown
This is the configuration I am trying on VPS:
docker-compose.yaml
a:
build: a
environment:
VIRTUAL_HOST: a.criptoconversor.tech
restart: always
b:
build: b
environment:
VIRTUAL_HOST: b.criptoconversor.tech
restart: always
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
restart: always
privileged: true
/etc/hosts
127.0.0.1 a.criptoconversor.tech
127.0.0.1 b.criptoconversor.tech
Dockerfiles in a
and b
folder were not edited.
Any idea why this might be happening?
I get the same error in my laptop as well, using my hostname instead of the production domain name.
Thanx.
Adding more info about the system from https://github.com/carlosvin/carlosvin.github.io/issues/40#issuecomment-795691751 Failing in:
OS: Ubuntu 20.04.1 LTS
Docker: Docker version 19.03.12, build 48a66213fe
Compose: docker-compose version 1.25.0, build unknown
Tested on Archlinux and Mac Catalina: OK