mirror of
https://github.com/dockersrc/almalinux
synced 2026-06-30 11:45:59 -04:00
9c41f2ee57f12e3f95242e7f1a7e3acd645f399b
Hosts with a search domain cause containers to inherit it. When the zone has a wildcard AAAA record, public hostnames resolve to the host's own IPv6 address instead of the real server, breaking all outbound HTTPS and DNS from inside the container. The entrypoint already has a hook: if /usr/local/etc/resolv.conf exists it replaces /etc/resolv.conf at container startup. Ship a clean resolv.conf with Cloudflare + Google DNS and no search domain so container DNS is always correct regardless of host configuration. - rootfs/usr/local/etc/resolv.conf: new file — clean DNS, no search domain rootfs/usr/local/etc/resolv.conf
👋 Welcome to almalinux 🚀
almalinux README
Install my system scripts
sudo bash -c "$(curl -q -LSsf "https://github.com/systemmgr/installer/raw/main/install.sh")"
sudo systemmgr --config && sudo systemmgr install scripts
Automatic install/update
dockermgr update os almalinux
Install and run container
mkdir -p "/var/lib/srv/root/docker/casjaysdev/almalinux/latest"
git clone "https://github.com/dockermgr/almalinux" "$HOME/.local/share/CasjaysDev/dockermgr/almalinux"
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/almalinux/rootfs/." "/var/lib/srv/root/docker/casjaysdev/almalinux/latest/"
docker run -d \
--restart always \
--privileged \
--name casjaysdev-almalinux-latest \
--hostname almalinux \
-e TZ=${TIMEZONE:-America/New_York} \
-v "/var/lib/srv/root/docker/casjaysdev/almalinux/latest/data:/data:z" \
-v "/var/lib/srv/root/docker/casjaysdev/almalinux/latest/config:/config:z" \
casjaysdev/almalinux:latest
via docker-compose
version: "2"
services:
ProjectName:
image: casjaysdev/almalinux
container_name: casjaysdev-almalinux-latest
environment:
- TZ=America/New_York
- HOSTNAME=almalinux
volumes:
- "/var/lib/srv/root/docker/casjaysdev/almalinux/latest/data:/data:z"
- "/var/lib/srv/root/docker/casjaysdev/almalinux/latest/config:/config:z"
restart: always
Get source files
dockermgr download src os almalinux
Build container
git clone "https://github.com/dockersrc/almalinux" "$HOME/Projects/github/dockersrc/almalinux"
cd "$HOME/Projects/github/dockersrc/almalinux" && buildx all
Authors
Description
Languages
Shell
95.8%
Dockerfile
4.2%