Comments (11)
Can you run it through strace and post the output?
from baseimage-docker.
It's a while I have done that... looks like I'm not allowed to run strace ?
strace: test_ptrace_setoptions_for_all: PTRACE_TRACEME doesn't work: Permission denied
strace: test_ptrace_setoptions_for_all: unexpected exit status 1
from baseimage-docker.
I tried my image on a newly created virtual host and it is working there .. so I guess it has something to do with my server .) I'd like any hint if you got one, but I guess it's not a bug in the image ;)
from baseimage-docker.
Maybe a strange filesystem thing. But strace doesn't work even with sudo? What if you run your Docker container with --privileged?
from baseimage-docker.
Does /usr/bin/redis-server has execution privileges?
from baseimage-docker.
Yes... and using su to change user to redis and then starting the server from the shell works. Maybe I have enabled some security thing on this server? I don't know.
from baseimage-docker.
Mmm permissions on Linux are quite simple and can't think of anything you could have turned on to have such behavior. Try sending out a couple of 'ls -la' of both executables and the configuration files to see if there is something missing there
---Sent from my iPhone
from baseimage-docker.
ok ... I think I found the culprit. In my dockerfile I have:
VOLUME ["/var/lib/redis"]
RUN chown redis /var/lib/redis
which I think always worked, but obviously not anymore, since the directory is now owned by root and that's the permission error I got.
BTW... I got strace working by putting the apparmor profiles to complain mode as described at https://help.ubuntu.com/community/AppArmor .. now I'm allowed to run strace
from baseimage-docker.
good that you found the problem.
from baseimage-docker.
I had a suspicion it would be something like AppArmor. :)
from baseimage-docker.
Yup, that seems to work. I ran aa-complain /etc/apparmor.d/docker
and all is good.
from baseimage-docker.
Related Issues (20)
- You should probably simply the docs to show the memcached example very early on HOT 3
- We now have a Discord server!
- Changelog for `focal-1.1.0` HOT 3
- hi. rocky8 or centos8 not support? HOT 3
- Change container builder from Docker to Buildah/Podman HOT 5
- There is a missing tag for focal-1.1.0 HOT 5
- pull error HOT 3
- Is the version of 0.10.2 alreadly outdated..? HOT 2
- apt does not work HOT 7
- syslog-ng warning HOT 2
- User inside the container HOT 9
- Timezone change HOT 2
- The docker pull command on the hub.docker.com page doesn't work HOT 1
- Security vulnerabilities HOT 6
- Docker Hub and Free Team Organisations HOT 1
- Base on Ubuntu 22.04 LTS? HOT 1
- Where did the MASTER tag go?
- package architecture (amd64) does not match system (arm64) on Macbook M2 HOT 1
- how to enable sshd in baseimage? HOT 2
- Status of jammy-1.0.2 build HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from baseimage-docker.