@Dirk@lemmy.ml
@Dirk@lemmy.ml avatar

Dirk

@Dirk@lemmy.ml

Somewhere between Linux woes, gaming, open source, 3D printing, recreational coding, and occasional ranting.

🔗 Me, but elsewhere

🇬🇧 / 🇩🇪

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

Dirk,
@Dirk@lemmy.ml avatar

The general public on Lemmy.

Dirk,
@Dirk@lemmy.ml avatar
  1. Don’t have an opinion too far away from the general public.
Dirk,
@Dirk@lemmy.ml avatar

Old things bad, new things good. I write article that is satire about it.

I’m strong. I’m no boomer. Please love me.

cope cope cope

Dirk,
@Dirk@lemmy.ml avatar

So you say I should rob a store, or what?

Dirk,
@Dirk@lemmy.ml avatar

This is basically an article promoting two Tweets (something like Toots, but on a monetized closed source for-profit platform run by a highly questionable billionaire).

Here:

https://lemmy.ml/pictrs/image/7f877ece-edcd-4d09-b550-963e7103406f.png

Terms of Service (media.kbin.social)

alt text(parodical) YouTube popup: Going to pee during the ad break violates YouTube’s Terms of Service - It looks like you selfishly left the room while our ads were playing. Don’t you know that by watching youtube you entered a CONTRACT?! - We killed the competition by operating at a loss for a decade. We paid good money...

Dirk,
@Dirk@lemmy.ml avatar

Forget YouTube.

Sony owns a patent for a system/concept that needs you to audibly name the company/product the advertisement is for to continue at the end of the advertisement.

fortune.com/…/sony-patent-is-hilarious-terrifying…

Dirk,
@Dirk@lemmy.ml avatar

There is no paywall, but thanks.

Dirk,
@Dirk@lemmy.ml avatar

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

Dirk,
@Dirk@lemmy.ml avatar

Less resources needed, less physical space needed, less power consumption, no need for a network, don’t need to maintain/update multiple systems, etc.

Wayland-Proxy Load Balancer Helping Firefox Cope With Wayland Issues (www.phoronix.com)

Among the Firefox Wayland bugs, one of the top crash bugs is over a lost connection to a Wayland compositor. For dealing with it is to have a proxy between Firefox and the Wayland compositor to cache messages and prevent compositor message queue overflows.

Dirk,
@Dirk@lemmy.ml avatar

When you need a proxy between your application and your graphics server then something fundamental went wrong long before.

Dirk,
@Dirk@lemmy.ml avatar

I recently just cleanly got out of Facebook after a decade.

Deleted all my comments, all my media and all my posts, and left all groups and unfriended everyone, then changed my name and my URL and finally disabled/deleted my account.

I don’t miss anything.

Dirk,
@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,
@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,
@Dirk@lemmy.ml avatar

It’s actually a suggested configuration / best practice to NOT have container user IDs matching the host user IDs.

Ditch the idea of root and user in a docker container. For your containerized application use 10000:10001. You’ll have only one application and one “user” in the container anyways when doing it right.

To be even more on the secure side use a different random user ID and group ID for every container.

Dirk,
@Dirk@lemmy.ml avatar

Why are they even still pushing that nonsense

It’s a for-profit corporation. They only have one goal.

Dirk,
@Dirk@lemmy.ml avatar

What can you automate with Beachpatrol? The sky is the limit:

  • Check your email.
  • Login to your bank account.

[…]

Oh hell no!

Dirk,
@Dirk@lemmy.ml avatar

Things explode for no real reason, everyone laughs.

Just a stupid funny action movie.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #