Comments

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Dirk, to linux in X11 tiling WMs
@Dirk@lemmy.ml avatar

I’m running a good old GTX 1080.

Dirk, (edited ) to selfhosted in Any good RSS Feed service for self-hosting?
@Dirk@lemmy.ml avatar

I remember years ago it already was like this in the forums. It actually made me stop using it and running a custom made web based reader for some time.

I wouldn’t use it anymore nowadays.

FreshRSS is the way to go. It even has plugins (and a plugin for YouTube channels as RSS feeds, very convenient).

Dirk, to selfhosted in Uid/gid in docker containers don't match the uid/gid on the server?
@Dirk@lemmy.ml avatar

This is really dependent on […]

… basically anything. Yes. You will always find yourself in problems where the best practice isn’t the best solution for.

In your described use case an option would be having the application inside the container running with 10000:10001 but writing the data into another directory that is configured to use 1000:1001 (or whatever the user is you want to access the data with from your host) and just mount the volume there. This takes a bit more configuration effort than just running the application with 1000:1001 … but still :)

Dirk, to selfhosted in Uid/gid in docker containers don't match the uid/gid on the server?
@Dirk@lemmy.ml avatar

Yep! The names are basically just a convenient way for referencing a user or group ID.

Under normal circumstances you should let the system decide what IDs to use, but in the confined environment of a docker container you can do pretty much what you want.

If you really, really, really want to create a user and group just set the IDs manually:


<span style="color:#323232;">FROM alpine:latest
</span><span style="color:#323232;">COPY myscript.sh /app/myscript.sh
</span><span style="color:#323232;">RUN addgroup -g 10001 mycoolgroup && adduser -D -u 10000 -G mycoolgroup mycooluser
</span><span style="color:#323232;">USER mycooluser:mycoolgroup
</span><span style="color:#323232;">CMD ["sh", "/app/myscript.sh"]
</span>

Just make sure to stay at or above 10000 so you won’t accidentally re-use IDs that are already defined on the host.

Dirk, to selfhosted in Uid/gid in docker containers don't match the uid/gid on the server?
@Dirk@lemmy.ml avatar

You don’t need to create the user first. Here’s the simplest I can come up with:


<span style="color:#323232;">FROM alpine:latest
</span><span style="color:#323232;">COPY myscript.sh /app/myscript.sh
</span><span style="color:#323232;">USER 10000:10001
</span><span style="color:#323232;">CMD ["sh", "/app/myscript.sh"]
</span>

This simply runs /app/myscript.sh with UID 10000 and GID 10001.

Dirk, to linux in Is DNS Bloat too?
@Dirk@lemmy.ml avatar

Looks fine 👍

Dirk, to fuck_cars in Europe’s politicians are dEsPeRaTe to tackle e-scooters, why aren’t they bothered by monster SUVs?
@Dirk@lemmy.ml avatar

Because the politicians are deep up in the automobile lobby’s ass.

Dirk, to memes in Terms of Service
@Dirk@lemmy.ml avatar

There is no paywall, but thanks.

Dirk, to linux in Mozilla Firefox 120 Is Now Available for Download, Here's What's New
@Dirk@lemmy.ml avatar

Privacy features lower ad revenue. This is not what they want.

Dirk, to linux in wayland is biased towards gnome
@Dirk@lemmy.ml avatar

Exactly this! They make windows unmanageable by the window manager and make the window look like a foreign object on the desktop.

Dirk, to memes in I don't want more issues
@Dirk@lemmy.ml avatar

Why pay if you can get them for free?

Dirk, (edited ) to memes in I'm too high for this
@Dirk@lemmy.ml avatar

Now I want to see it even more!

Dirk, to memes in A tale as old as time
@Dirk@lemmy.ml avatar

Oh crap, that’s even worse!

Dirk, to linux in Fonts
@Dirk@lemmy.ml avatar

What font do you use?

DejaVu Sans for basically everything. DejaVuSans Mono for things I need a monospace font for. Nerdfonts Symbols for various icons/symbols to show icons in Neovim or Waybar for example.

Dirk, to memes in Which company is best for Mobile app marketing in India
@Dirk@lemmy.ml avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #