Coder Social home page Coder Social logo

Comments (4)

Montspy avatar Montspy commented on June 16, 2024

Interestingly, anything running in docker.sh is root

monty@DESKTOP-K3TBKAD:~/LooPyGen$ ./docker.sh whoami
root

from loopygen.

sk33z3r avatar sk33z3r commented on June 16, 2024

This is a thing with Docker. Running a virtual machine, so unless you specify users it defaults to root. I need to get the user's local UID:GID and pass it into the PHP container running python to fix this.

from loopygen.

sk33z3r avatar sk33z3r commented on June 16, 2024

I'd be curious to see the output of ls -n for the UID and GID on yours. @nate61390 seems to be OK, maybe the git/bash differences we ran into before are partially to blame

from loopygen.

sk33z3r avatar sk33z3r commented on June 16, 2024

macOS gonna make this real difficult.

Windows with WSL2 appears to setup a new unix user just like debian/ubuntu would, as 1000:1000. Most Linux distributions do this, except for NixOS which sets this at 1000:100. Although different, I can still setup permissions properly since the UID is identical in both, so 755 permissions will still do the trick.

Thanks to Mac, though, it's gonna be impossible to pick a standard UID to use. Mac sets this at 502:20. I'm guessing 20 is the default GID for Mac users, and the UID probably starts at 500 and increments for new users added.

So I think I will have to sort out this behavior in bash before the user runs the containers (which means before a UI is available) to get the UID:GID of current user, at the .env file, then load up the docker containers.

from loopygen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.