Giter Club home page Giter Club logo

Comments (2)

anibali avatar anibali commented on August 22, 2024

This is really just a general Docker question, so I recommend just looking around for how other people handle this regardless of the specific image. Unfortunately there is no clean and easy way to solve it. The solution I use most often is to modify the Dockerfile by creating a user within that matches the UID on the host install. Also, make sure that you create the folder with correct permissions on the host first, before mounting it as a volume.

Check this out as an example of creating a non-root user in the Dockerfile: https://github.com/anibali/margipose/blob/master/Dockerfile#L17-L25

from docker-pytorch.

yzhao520 avatar yzhao520 commented on August 22, 2024

Thanks for your suggestions! I'll try to match the UID first.

from docker-pytorch.

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.