Giter Club home page Giter Club logo

Comments (3)

jim60105 avatar jim60105 commented on July 28, 2024 1

Perhaps I should write a little more🤔

This image follows best practices by using non-root user.
You have to ensure that all files mounted into it belong to root group and grant full permission for the group owner.
https://docs.openshift.com/container-platform/4.15/openshift_images/create-images.html#use-uid_create-images

The container is running as 1000:0, and it may not have permission to execute chmod and chgrp commands in the container.
If you want to correct the permission you can run it with sudo on the host, or start a busybox with root privileges to do this.

sudo docker run -v "{your_new_folder_to_blip_caption}:/app" -it busybox sh -c "chmod -R 775 /app && chgrp -R 0 /app"

Note

Please note that the above instructions are for docker, not podman.
Podman is much more complex in handling permissions and requires different solution according to the situation.

And, check this out when dealing with SELinux
https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label

from kohya_ss.

jim60105 avatar jim60105 commented on July 28, 2024

chmod 775 , chgrp 0

from kohya_ss.

kirby-jack avatar kirby-jack commented on July 28, 2024

i tried
chmod 775 <directory>
and
chgrp 0 <directory>

but no luck

from kohya_ss.

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.