RancherOS 极简主义 发表于 2021-06-08 | 更新于 2024-11-24
| 总字数: 514 | 阅读时长: 2分钟 | 浏览量:
0x1 InI 如果你不希望为了使用Docker 而增加负担,不妨试试这个RancherOS
NAME : RancherOS
SITE : https://rancher.com/
RESUME: 一个极轻量且安全的Linux发行版。它由容器构建,将赋予您更好的容器运行体验。
0x2 INSTALL BY VMWARE 1 2 3 4 Booting from ISO https://releases.rancher.com/os/latest/vmware/rancheros.iso For docker-machine https://releases.rancher.com/os/latest/vmware/rancheros-autoformat.iso VMDK https://releases.rancher.com/os/latest/vmware/rancheros.vmdk Initrd https://releases.rancher.com/os/latest/vmware/initrd
0x21 Set Up VM
开机注意连接 ISO
0x22 Power on VM
0x23 cloud-config.yml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 rancher: docker: registry_mirror: https://docker.mirrors.ustc.edu.cn network: interfaces: eth0: dhcp: true eth1: dhcp: true dns: nameservers: - 223.5 .5 .5 - 223.6 .6 .6 ssh_authorized_keys: - ssh-rsa - ssh-rsa
0x24 config & install 1 2 3 4 5 6 7 8 9 10 11 12 sudo passwd rancher ssh rancher@192.168.52.132 vi cloud-config.yml i sudo fdisk -l sudo ros install --cloud-config cloud-config.yml --device /dev/sda
0x25 daemon.json 1 2 3 4 5 6 7 8 9 10 11 12 { "registry-mirrors" : [ "https://registry.docker-cn.com" , "http://hub-mirror.c.163.com" , "https://docker.mirrors.ustc.edu.cn" ] , "dns" : [ "223.5.5.5" , "8.8.8.8" ] }
0x3 PLAY & WORK 0x31 DBJ 1 docker run -it --name dbj -p 5000:5000 xrsec/dbj:latest
0x32 V2RAYA 1 2 3 4 5 6 7 8 9 docker run -d \ --restart=always \ --privileged \ --network=host \ --name v2raya \ -v /lib/modules:/lib/modules \ -v /etc/resolv.conf:/etc/resolv.conf \ -v /etc/v2raya:/etc/v2raya \ mzz2017/v2raya
0x33 DDNS-GO 1 2 3 4 5 6 docker run -d \ --name ddns-go \ --restart=always \ --net=host \ -v /opt/ddns-go:/root \ jeessy/ddns-go
0x34 COBALTSTRIKE 1 2 3 4 5 6 7 8 9 10 11 12 13 14 docker run -it \ --name cs \ -e "passwd=123456" \ -e "server_ip=192.168.52.132" \ -e "server_port=53235" \ -e "aliasname=Bing Wallpaper" \ -e "dname=CN=www.microsoft.com, OU=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=WA, C=US" \ -p 50000:50000 \ -p 443:443 \ -p 80:80 \ -p 50000:50000/udp \ -p 443:443/udp \ -p 80:80/udp \ xrsec/cobaltstrike:none
0x35 AWVS 1 2 3 4 docker run -it -d \ --name awvs \ -p 3443:3443 \ xrsec/awvs:v14
. . .
BUG❌ 万万不可删除以下容器,也不要使用 sudo 命令 , 需要用到 sudo 命令 务必三思
docker rm -f $(docker ps -qa) # 不要尝试这个命令 堪比 rm -rf 其他问题欢迎留言