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

ls: cannot access '.': Operation not permitted #149

Closed
dosfx opened this issue Jan 21, 2022 · 2 comments
Closed

ls: cannot access '.': Operation not permitted #149

dosfx opened this issue Jan 21, 2022 · 2 comments

Comments

@dosfx
Copy link

dosfx commented Jan 21, 2022

Apologies if this is not the correct place to raise this issue. Maybe you folks can point me in the right direction. Getting strange behaviour in containers based on debian. This is very beyond my current understanding of linux and docker and all that.

Running on a bare debian image, something is wrong with permissions? ls complains about being able to access anything. Showing below what happens when ls -la is run in / but its consistent everywhere I've tried in the filesystem. Just straight ls works no problem. It works correctly if I go back to buster.

Now while a pain I'd kind of learned to live with it but recently I was working on a dockerfile for something using debian as the base image and I'm also unable to ./execute a script that's built by gnu automake. So I've had to roll the dockerfile back to buster for now. Am I in the right place? or is this perhaps a docker problem?

Thanks!

$ docker pull debian:bullseye-slim
bullseye-slim: Pulling from library/debian
Digest: sha256:b0d53c872fd640c2af2608ba1e693cfc7dedea30abcd8f584b23d583ec6dadc7
Status: Image is up to date for debian:bullseye-slim
$ docker run --rm -it debian:bullseye-slim bash
root@12a49f3bb8b0:/# ls -la
ls: cannot access '.': Operation not permitted
ls: cannot access '..': Operation not permitted
ls: cannot access 'bin': Operation not permitted
ls: cannot access 'boot': Operation not permitted
ls: cannot access 'dev': Operation not permitted
ls: cannot access 'etc': Operation not permitted
ls: cannot access 'home': Operation not permitted
ls: cannot access 'lib': Operation not permitted
ls: cannot access 'lib64': Operation not permitted
ls: cannot access 'media': Operation not permitted
ls: cannot access 'mnt': Operation not permitted
ls: cannot access 'opt': Operation not permitted
ls: cannot access 'proc': Operation not permitted
ls: cannot access 'root': Operation not permitted
ls: cannot access 'run': Operation not permitted
ls: cannot access 'sbin': Operation not permitted
ls: cannot access 'srv': Operation not permitted
ls: cannot access 'sys': Operation not permitted
ls: cannot access 'tmp': Operation not permitted
ls: cannot access 'usr': Operation not permitted
ls: cannot access 'var': Operation not permitted
total 0
d????????? ? ? ? ?            ? .
d????????? ? ? ? ?            ? ..
d????????? ? ? ? ?            ? bin
d????????? ? ? ? ?            ? boot
d????????? ? ? ? ?            ? dev
d????????? ? ? ? ?            ? etc
d????????? ? ? ? ?            ? home
d????????? ? ? ? ?            ? lib
d????????? ? ? ? ?            ? lib64
d????????? ? ? ? ?            ? media
d????????? ? ? ? ?            ? mnt
d????????? ? ? ? ?            ? opt
d????????? ? ? ? ?            ? proc
d????????? ? ? ? ?            ? root
d????????? ? ? ? ?            ? run
d????????? ? ? ? ?            ? sbin
d????????? ? ? ? ?            ? srv
d????????? ? ? ? ?            ? sys
d????????? ? ? ? ?            ? tmp
d????????? ? ? ? ?            ? usr
d????????? ? ? ? ?            ? var
root@12a49f3bb8b0:/# 
@tianon
Copy link
Contributor

tianon commented Jan 21, 2022

There are a few issues here about the problem, but #143 is a pretty recent one - the short answer is that you need to update Docker on your host to 20.10.8+ and libseccomp to 2.4.2+.

@tianon tianon closed this as completed Jan 21, 2022
@dosfx
Copy link
Author

dosfx commented Jan 21, 2022

@tianon thanks dude too easy. Sorry to bother you!

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