storage="/rpool/containers"
newpodname="netbootxyz"
newpodlocalpath="$storage/$newpodname"
mkdir -p $newpodlocalpath/{config,assets}
podman run -d \
--name=$newpodname-app \
-p 3000:3000 `# sets webapp port` \
-p 69:69/udp `# sets tftp port` \
-p 8069:80 `# optional` \
-v $newpodlocalpath/config:/config `# optional` \
-v $newpodlocalpath/assets:/assets `# optional` \
--restart unless-stopped \
docker.io/netbootxyz/netbootxyz
cd /etc/systemd/system
podman generate systemd --files --name ${ $newpodname}-app
systemctl daemon-reload
systemctl enable container-${newpodname}-app
systemctl stop container-${newpodname}-app
systemctl start container-${newpodname}-app
# -e MENU_VERSION=2.0.59 `# optional` \
# --pod=$newpodname \
newpodname="netbootxyz"
newpodlocalpath="$storage/$newpodname"
mkdir -p $newpodlocalpath/{config,assets}
podman run -d \
--name=$newpodname-app \
-p 3000:3000 `# sets webapp port` \
-p 69:69/udp `# sets tftp port` \
-p 8069:80 `# optional` \
-v $newpodlocalpath/config:/config `# optional` \
-v $newpodlocalpath/assets:/assets `# optional` \
--restart unless-stopped \
docker.io/netbootxyz/netbootxyz
cd /etc/systemd/system
podman generate systemd --files --name ${ $newpodname}-app
systemctl daemon-reload
systemctl enable container-${newpodname}-app
systemctl stop container-${newpodname}-app
systemctl start container-${newpodname}-app
# -e MENU_VERSION=2.0.59 `# optional` \
# --pod=$newpodname \
Ратнер Арсений, arsenyratner@gmail.com, 7 985 273 2090
Комментариев нет:
Отправить комментарий