jgsoftwares/alpinelinux_landingpage
alpine linux edge
78
edit timezone to germany
apk add tzdata
ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime \
to run the container in a docker swarm install
apk add distrobox
the interface is started with 127.0.0.1/8 by default
to edit the lo interface
--cap-add=NET_ADMIN
ip addr del 127.0.0.1/8 dev lo
ip addr add 127.0.0.1/24 dev lo
container start with resolv.conf from host system
--> http://demogitjava.ddns.net:8000/serverconfig/resov.conf
-v /etc/resolv.conf:/etc/resolv.conf
installed java runtime
openjdk version "11.0.22" 2024-01-16
OpenJDK Runtime Environment (build 11.0.22+7-alpine-r0)
OpenJDK 64-Bit Server VM (build 11.0.22+7-alpine-r0, mixed mode)
\
run command:
docker run -i -p 0.0.0.0:80:80 --name landingpageedge --dns 8.8.8.8 --dns 8.8.4.4 -v /etc/resolv.conf:/etc/resolv.conf --network 172.17.0.0 --ip 172.17.0.4 --restart unless-stopped --cap-add=NET_ADMIN --platform=linux/amd64 jgsoftwares/alpinelinux_landingpage:edge
for docker swarm:
the resolv.conf and the docker.sock are implemented from the host system
docker run -i -p 0.0.0.0:80:80 --add-host=demogitjava.ddns.net:217.160.255.254 --name landingpageedge --net=host --hostname demogitjava.ddns.net --dns 8.20.247.20 --dns 8.26.56.26 -v /var/run/docker.sock:/var/run/docker.sock -v /etc/resolv.conf:/etc/resolv.conf --restart unless-stopped --cap-add=NET_ADMIN --platform=linux/amd64 jgsoftwares/alpinelinux_landingpage:edge
optional
--dns 8.8.8.8 --dns 8.8.4.4 --network 172.17.0.0 --ip 172.17.0.4
docker network create -d macvlan --subnet=172.25.0.0/24 --gateway=172.25.0.1 -o parent=ens192 172.25.0.0
docker pull jgsoftwares/alpinelinux_landingpage