krull / docker-janus

Debian based docker image for https://github.com/meetecho/janus-gateway
GNU General Public License v3.0
59 stars 49 forks source link

Permission denied #2

Closed ghost closed 7 years ago

ghost commented 7 years ago

I created and started container with: docker-compose up -d but i get exit status = -1

Container log file contains: {"log":"Error opening log file /var/log/janus.log: Permission denied\n","stream":"stdout","time":"2017-03-14T14:14:21.874209353Z"}

Any help?

krull commented 7 years ago

@yuledev check your perms on the host... make certain UID/GID 999 is mapped correspondingly on the host as the docker instance uses UID/GID 999 internally.

What I usually do is the following, on the host:

groupadd -g 999 docker
useradd -m -u 999 -g 999 docker

This ensure that host/container docker user is 1:1.

Your mileage may vary.

roadev commented 4 years ago

@yuledev check your perms on the host... make certain UID/GID 999 is mapped correspondingly on the host as the docker instance uses UID/GID 999 internally.

What I usually do is the following, on the host:

groupadd -g 999 docker
useradd -m -u 999 -g 999 docker

This ensure that host/container docker user is 1:1.

Your mileage may vary.

I still face the same problem as @yuledev :/

lnogueir commented 4 years ago

Why is this closed? There is no clear solution

lekhnath commented 3 years ago

I am also facing the same issue

alsiPanda commented 3 years ago

I am facing the same issue. the groupadd and useradd commands did not help