Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker-compose up error: resulting devices cgroup doesn't match target mode: unknown #1

Open
fdbatista opened this issue Mar 9, 2021 · 1 comment

Comments

@fdbatista
Copy link

fdbatista commented Mar 9, 2021

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.

@carlosvin
Copy link
Owner

Adding more info about the system from carlosvin/carlosvin.github.io#40 (comment)
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants