4 ms·
Docker is a mess if you want to read or write any files on the host system. Which is often what you want to do from a cli. Mainly because volumes are mounted a
by Too 5y ago
Docker is a mess if you want to read or write any files on the host system. Which is often what you want to do from a cli.
Mainly because volumes are mounted as the host user UID, while the container might be running any other user, often root.
Quite baffling they haven’t made this easier since it would be a real killer feature unlocking even more potential from containers.
- MichaelMoser123 5y agoright, one possibility is to pipe standard output to an output file. Another use case is running a http server locally, for something that has a graphic ui. Like one of my projects here: https://github.com/mosermichael/s9k https://github.com/mosermichael/s9k
- MichaelMoser123 5y agoyou can mount the users home directory, if file system changes are limited to the current user.