Συντάκτης: Lorenz Ημερομηνία: Προς: dng@d404.nl Υ/ο: dng Αντικείμενο: Re: [DNG] help with docker - running entrypoint as root
Il giorno dom 7 lug 2024 alle ore 21:09 dng@??? <dng@???> ha scritto: >
> Three things: you give the hostname with the commandline --hostname
> yourhostname because /etc/hostname is protected by the docker daemon.
> For the console you have to add -t to the commandline too. And have
> access to some fs you have to use --CAP_ADD with the correct privilege
> or for quick and dirty --privileged.
> So
>
> docker run -t --hostname your hostname --privileged --name=runit
> runit-testsuite
the --privileged option does what I need, thanks !!
Lorenzo
>
> Better yet you remove everything in /etc/rcS.d/* (in the Dockerfile) and
> add just the scripts you want to run in phase 1 from runit most likely
> you won't need the --privileged part than.
>
> Grtz.
>
> Nick
>
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng