Comments (16)
Its only like a 5s delay so not crazy but still.
from sail.
If we're indiscriminately chmoding home, isn't it possible we override some intentionally set permissions?
from sail.
We're chowning it which should be fine.
from sail.
Is that because chown doesn't propogate a mac mount? Confused
from sail.
Its extremely unlikely any of the mounts contain files owned by a different user.
an alternative approach we could take is to pass in the UID to the build container as a build arg so that the image itself has the right uid from the get go.
from sail.
In the rare case there is, there can be some minor corruption. E.g, what if they sshfs a server to some directory in home? I know i've done that before.. This could infinitely traverse my remote server and fuck me up good.
from sail.
Just read the manpage, it turns out it only chowns files already owned by the user. Not sure how this interacts with mounts though. I'll give it a test.
from sail.
That doesn't make any sense... If the file is already owned by the user what good does chowning it to the same user do?
from sail.
Files aren't owned by the user, they're owned by the UID.
from sail.
isn't the uid 1:1 associated with user
from sail.
Yes, but if you change the UID for a user, you need to chown every file such thats its owned by the new UID.
from sail.
So turns out, the osxfs driver does the right thing by default: https://stackoverflow.com/questions/43097341/docker-on-macosx-does-not-translate-file-ownership-correctly-in-volumes
from sail.
So multi user systems are supported on macOS without any changes. Just linux that will end up being an issue.
from sail.
might be useful: https://github.com/boxboat/fixuid
coder/code-server#640
from sail.
Using that fixuid
library to get CI working, seems to work pretty well
from sail.
Going to close as it has been a while and I'm not sure if this is relevant anymore.
from sail.
Related Issues (20)
- repo as filepath does not work with rm command
- failed to wait for project to be online: container cdr_sail not running HOT 2
- Sail run same image (multiple but on different ports)
- 'server password' needed, but not documented HOT 4
- [bug] No such container cdr_sshcode HOT 1
- cosmic no longer supported (EOL)
- License non-compliance
- Documentation's "apt-get" fails as the user is not root
- ubuntu-dev-node12 is missing installext command
- installext successful, but extensions not installed
- TypeError: Cannot read property 'action' of undefined in sail.js:73
- Sail base images, based off Ubuntu 18.04 LTS for PowerShell development HOT 1
- docker run works / sail run fails (failed to refresh code-server port...)
- ERROR build run failed: failed to run container
- sail command retrieve wrong version of code-server HOT 1
- Failed to Build image, Exit 100 HOT 13
- Docker RUN installext ms-azuretools.vscode-docker fails with 'not found' HOT 1
- New github release 1.1.1 or 1.2.0 needed for fixes HOT 2
- ERROR failed to wait for project to be online: container cdr_sail not running HOT 4
- sail run cdr/sail fails "Unknown option --data-dir" HOT 3
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 sail.