Comments (5)
Please copy files when you need to control the permission.
From what described @artggd, it seems there is a permission corruption rather than a need to get control over permissions.
The /app
folder in the container has read and execute bits for all (user, group & other): why a non-root user (ie. www-data
) could not enter the directory with such permissions?
Expected behavior.
With the emphasis I did on the permission issue, is this still expected?
If yes, could you point us in the component in lima from which this behaviour comes from (the reverse SSHFS with sshoker maybe?)
Finally, if this is expected behaviour on Lima, this is quite not the case from a user stand point: would you agree to add this in the README's troubleshooting section?
from lima.
Expected behavior. Please copy files when you need to control the permission.
from lima.
Could you provide full commands to reproduce the issue
from lima.
Thanks for your reply, here's how to reproduce:
- Start limactl and run a shell
$ limactl start
$ lima
- Run a bash session in a docker container, binding a volume
app
to it
$ docker run --volume $PWD/myproject:/app --rm -it nginx:latest bash
ls -lad app
to see the files permissions on the volume should give you this:
root@b6444cc8d609:/# ls -lad app
drwxr-xr-x 1 root root 64 Jun 29 12:43 app
su
as www-data
root@b6444cc8d609:/# su -s /bin/bash www-data
- Try to move to app directory
www-data@b6444cc8d609:/$ cd app
bash: cd: app: Permission denied
-> The app folder is not readable by www-data
, only root
can access it.
from lima.
@AkihiroSuda, did you get a chance to review my last comment?
from lima.
Related Issues (20)
- lima start "error reading server preface: http2: frame too large" HOT 7
- Lost files on host when canceling limactl start HOT 8
- USB passthrough rabbit hole HOT 7
- Customizable image location property HOT 4
- Guest agent sometimes becomes unavailable from the host HOT 4
- alpine, virtiofs: `/etc/fstab` contains `timezone: Asia/Tokyo` HOT 6
- v0.20.2 planning HOT 1
- `limactl create` miss `--timeout` flag HOT 1
- mount host directories with given user permissions HOT 6
- Default instance with a launchagent created by `start-at-login` isn't available after startup HOT 5
- Allow disabling automatic fallback to 8.8.8.8 and 1.1.1.1
- Unable to access K3s cluster from Host system (MacOS, M1) from Lima VM. (`x509: certificate signed by unknown authority`) HOT 3
- Generated `user-data` is failing cloud-config schema validation HOT 8
- Generate separate cloud-config.yaml for when not using cidata.iso HOT 10
- The cloud-init upstream have messed up their documentation, so links are failing HOT 1
- Support libkrun (mostly for Virtio-GPU Venus), via krunkit HOT 2
- VM contains several default routes HOT 5
- Lima disregards settings in `networks.yaml` until explicitly specified HOT 2
- Additional provisioning formats beyond shell scripts
- v0.22 planning 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 lima.