RE: https://mastodon.social/@atareao/116255018657677097
Para los que os gusta el tema servidores Linux
RE: https://mastodon.social/@atareao/116255018657677097
Para los que os gusta el tema servidores Linux
In this blog post I want to show how you can secure docker swarm so that docker containers are not running in root context on the host system.
https://hostlab.tech/blog/securing-docker-swarm-rootless
#docker #dockerswarm #rootless #tutorial #opensource #nginx #ubuntu #swarm #dockersocket
I'm still experimenting with #podman #rootless and can't find how to allow containers/pod to access #localhost
Context: one pod with 2 #containers, one needs access to localhost. Podman is 5.4 with pasta networking.
I tried adding "-T" or "host-gateway" options to pasta network on the pod but still no way.
Can't to find a single complete article on how to manage networking on pods, a lot of different information
Has anyone a solution to this problem? Is it simply possible?
Some years ago, I started using #Docker #rootless for my #selfhosting needs. I was quite happy with it, even if finding information about rootless mode has been quite difficult.
I mostly used #compose setups.
Some days ago, I looked at #podman to replace those setups with a more modern stack. Podman works well for single containers but not that much podman-compose: don't believe the articles telling you that it's automatic, it's not!
I didn't expect #rootless #podman to be such a rabbit hole nightmare.
It appears to be impossible to get the permissions right for a mounted folder for which the user starting the container has reading rights on the host via being in the group the files belong to.
I thought that is just a very basic use case. Probably I will just use docker again.
Tried to decide if I should look into #pasta instead of #slirp4netns. Looked at their webpage and found a long list of features. Nice.
Looked for a man page for the pasta command, but it was nowhere to be found on the webpage. Instead I could watch a 10 minutes long video showing 3 terminal windows and a window with a scrolling text explaining what happens in the terminal windows.
That is a thanks, but no thanks from me.
Запуск GUI-приложений в Docker-контейнере.
1. На машине с #Wayland и без #XOrg
2. Rootless-контейнер #Docker
3. Тяжёлое мультимедиа #Chromium
Запуск контейнера:
docker run --rm -it \
-e XDG_RUNTIME_DIR="/run/user/$(id -u)" \
-e DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus \
-e WAYLAND_DISPLAY=$WAYLAND_DISPLAY \
-v $XDG_RUNTIME_DIR/pipewire-0:$XDG_RUNTIME_DIR/pipewire-0 \
-v $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY \
-v $XDG_RUNTIME_DIR/bus:$XDG_RUNTIME_DIR/bus \
-v $XDG_RUNTIME_DIR/pulse/native:$XDG_RUNTIME_DIR/pulse/native \
--device /dev/dri \
--device /dev/snd \
имя-образа-для-контейнера \
chromium --no-sandbox --ozone-platform=waylandНе обязательно с --rm (даёт автоматическое удаление контейнера после остановки\выхода из браузера).chromium-debian.Dockerfile файл:FROM debian:12
RUN apt-get update && \
apt-get install -y chromium --no-install-recommends && \
rm -rf /var/lib/apt/lists/*Зайдя в это каталог, через cd, собрать образ:docker build . \
--file chromium-debian.Dockerfile \
-t имя-образа-для-контейнера$(id -u) в параметрах)./etc/subuid и /etc/subgid, которые содержат проецирование идентификаторов:$ cat /etc/subuid
username:100000:65536