# Deploy container from ISO
https://vyos.net/get/nightly-builds/
cd /opt
mkdir vyos && cd vyos
wget https://s3-us.vyos.io/rolling/current/vyos-1.4-rolling-202303260914-amd64.iso
mkdir rootfs
mount -o loop vyos-1.4-rolling-202303260914-amd64.iso rootfs
---
yum -y install squashfs-tools
apt-get install -y squashfs-tools
mksquashfs -version
unsquashfs -version
---
mkdir unsquashfs
unsquashfs -f -d unsquashfs/ rootfs/live/filesystem.squashfs
tar -C unsquashfs -c . | docker import - vyos:1.4-rolling-202303260914
umount rootfs
cd ../
rm -rf vyos
docker run -d --name vyos --restart=always --hostname vyos --privileged -v /lib/modules:/lib/modules -v /data/docker/nginx/vyos:/opt/vyatta/etc/config -w /vyos --sysctl net.ipv6.conf.all.disable_ipv6=1 vyos:1.4-rolling-202303260914 /sbin/init
docker exec -it vyos /bin/bash
su vyos
configure
# Deploy container from ISO
https://openwrt.org/zh/downloads
cd /opt
wget https://downloads.openwrt.org/releases/22.03.3/targets/x86/64/openwrt-22.03.3-x86-64-generic-squashfs-rootfs.img.gz
gzip -d openwrt-22.03.3-x86-64-generic-squashfs-rootfs.img.gz
mkdir rootfs
mount -o loop vyos-1.4-rolling-202303260914-amd64.iso rootfs
---
yum -y install squashfs-tools
apt-get install -y squashfs-tools
mksquashfs -version
unsquashfs -version
---
mkdir unsquashfs
unsquashfs -f -d unsquashfs/openwrt-22.03.3-x86-64-generic-squashfs-rootfs.img
tar -C unsquashfs -c . | docker import - openwrt:22.03.3
umount rootfs
cd ../
rm -rf unsquashfs