Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

resource.error: (1, 'Operation not permitted') when trying to run docker image #25

Open
rbrooklyn opened this issue May 17, 2020 · 4 comments

Comments

@rbrooklyn
Copy link

OS is Ubuntu 20.04.
Running on a Raspberry pi 4 4GB.

Unfortunately it seems the docker image is doing something docker or Ubuntu isn't allowing. When running sudo docker run -p 80:80 -p 8889:8889 kerberos/kerberos the following output is observed and the container stops:

Config files are available.
Config files are available.
Traceback (most recent call last):
File "/usr/bin/supervisord", line 11, in
load_entry_point('supervisor==3.3.1', 'console_scripts', 'supervisord')()
File "/usr/lib/python2.7/dist-packages/supervisor/supervisord.py", line 365, in main
go(options)
File "/usr/lib/python2.7/dist-packages/supervisor/supervisord.py", line 375, in go
d.main()
File "/usr/lib/python2.7/dist-packages/supervisor/supervisord.py", line 70, in main
rlimit_messages = self.options.set_rlimits()
File "/usr/lib/python2.7/dist-packages/supervisor/options.py", line 1372, in set_rlimits
soft, hard = resource.getrlimit(res)
resource.error: (1, 'Operation not permitted')

@cedricve
Copy link
Member

hmmm @rbrooklyn do you have any update on this?

@rbrooklyn
Copy link
Author

Only that it's probably still broken, unless an update has landed since I raised the issue.

The only way to get this working is to run the container privileged, which is obviously far from ideal.

@cedricve
Copy link
Member

cedricve commented Jun 6, 2020 via email

@chevli
Copy link

chevli commented Jun 27, 2020

I had to run this using the --privileged flag to get this working on my RP4 running Ubuntu 20.04. I hope that helps.

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

No branches or pull requests

3 participants