Comments (9)
What do you mean exactly by non-root image ?
from docker-mkvtoolnix.
create a new user and have that user running the container. here's a couple snippets from relevant sections of code from here https://github.com/k8s-at-home/container-images/blob/main/base/ubuntu/Dockerfile
RUN \
adduser kah \
--uid 568 \
--group \
--system \
--disabled-password \
--no-create-home \
&& \
mkdir -p /config \
&& chown -R kah:kah /config \
&& chmod -R 775 /config
ENV LANG en_US.UTF-8
USER kah
VOLUME [ "/config" ]
from docker-mkvtoolnix.
Ok, then the image is almost already non-root. Currently, the app itself (MKVToolNix) is running as non-root, along with most other supporting processes.
Note that I'm also working on the next version of the baseimage, in which s6-overlay is replaced by something simplier.
from docker-mkvtoolnix.
Very nice! It seems that a lot of images are using Tini over S6 these days. You did a great job on this btw. I did create a helm chart for this to use on k8s clusters. I'll wait to push it to my git if you're working on a new base image anyways.
from docker-mkvtoolnix.
Tini is good at running a single process. But it is not a process manager, which is something required for complex Docker image like this one, where multiple processes are running inside the container.
from docker-mkvtoolnix.
I have similar wish (non-root image). Is there any progress with new base image?
from docker-mkvtoolnix.
Yes, I'm hoping to start deploying apps based on the new baseimage in the following days/weeks.
To set expectations about non-root images: the new baseimage run all processes under a non-root user, except for the process monitor and init scripts, who still needs to be run as root. As mentioned earlier, the method used by containers under the k8s-at-home
repo doesn't apply here. k8s-at-home
applications are single binaries that don't need external services to function.
To be serious about all that, one should use Docker in rootless mode instead. With this mode, the whole Docker engine, along with containers, are not running as root. Docker uses a trick to remap users, meaning that the root user in the container is mapped to a non-root user on the host. See this interesting article: https://mohitgoyal.co/2021/04/14/going-rootless-with-docker-and-containers/.
from docker-mkvtoolnix.
Thank you for your quick reply.
Immediately after posting, I realized I actually don't really require non-root image. I only needed a different application user, and this could be achieved by passing env variables USER_ID/GROUP_ID. So, my bad, for not even carefully reading README page.
Still, your additional explanations (and the link) were very useful. Thanks again!
from docker-mkvtoolnix.
Perfect, so I think we can close this issue.
from docker-mkvtoolnix.
Related Issues (20)
- I have something wrong with my mkvtoolnix in docker HOT 10
- Can the clipboard toolbar be fixed to the left or right side? HOT 7
- Container doesn't start correctly since v22.10.1: could not load 'app.dep': command failed (126) HOT 12
- Image failing to start on Synology DSM 6 since 23.01.1 update HOT 70
- Docker image won't start on DSM 7 HOT 1
- docker container stops after creating (exit code 134) HOT 2
- error [app ] qt.svg: :/icons/mkvtoolnix-gui/oxygen/edit-entry.svg:2766:6: Could not resolve property: #linearGradient4636 HOT 3
- After watchtower update the container last night i won't run HOT 2
- Issue with mkvtoolnix setting advanced HOT 8
- Ignore chown for certificate HOT 6
- [Bug] On my terramaster nas I have to delete container, image and config directory HOT 2
- [Bug] Files created are owned by root HOT 4
- Unable to install on Unraid HOT 4
- [Bug] "Unexpected error encountered: Script error." error on GUI HOT 2
- [Bug] Cannot read properties of null (reading,0,) HOT 2
- [Bug] mkvtoolnix browser UI failure HOT 7
- [Feature request] Two optimization requests regarding the clipboard HOT 1
- [Bug] Fail to start after updating to the latest version HOT 3
- [Feature request] Adapt the gui for phone use HOT 1
- [Bug] Getting constant MKVToolNix - Disconnected in google chrome HOT 30
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 docker-mkvtoolnix.