pieceofthepie, to Laravel
@pieceofthepie@n8e.dev avatar

Been battling to get #LaravelSail working with rootless #Podman all evening and aren't having much luck. Boo to overly complex things.

It's so close to working well but the whole uid/gid mapping thing just falls apart when the container starts running things as different users. All of a sudden there're large parts of my source tree that I can't edit, not to mention being unable to use artisan make tools.

#Laravel #Linux #SelfHost

Nitrousoxide,
@Nitrousoxide@mastodon.world avatar

@pieceofthepie
There's a few potential ways to handle userns issues.
The most straighforward one that usually solves it all is to just run the userns as keep-id
https://docs.podman.io/en/latest/markdown/podman-run.1.html#userns-mode

if you do want to keep to seperate uid spaces there's uidmap which gives you a lot of control
https://docs.podman.io/en/latest/markdown/podman-run.1.html#uidmap-flags-container-uid-from-uid-amount

pieceofthepie,
@pieceofthepie@n8e.dev avatar

@Nitrousoxide I ended up going with that first one, but only after I'd moved away from #LaravelSail since it was doing something that would stop keep-id from working.

All good now.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines