--privileged=true
docker run --privileged=true -d -p 4489:4489/tcp --name bbb aaa
--cap-add NET_ADMIN --cap-add NET_RAW
#生成容器 docker run -itd --net=none --name=centos06 --cpuset-cpus="0-3" -m 1024M --memory-reservation 1024M --cap-add NET_ADMIN --cap-add NET_RAW ssh-java1.8-tomcat8-centos6 /bin/bash #配置网络IP pipework br0 centos06 132.97.8.6/24@132.97.8.1 #进入容器 docker attach centos06 #设置容器的防火墙 [root@dee8225a9bba /]# iptables -A INPUT -s 132.97.0.0/16 -p tcp -m tcp --dport 21 -j ACCEPT [root@dee8225a9bba /]# iptables -A INPUT -s 132.97.0.0/16 -p tcp -m tcp --dport 22 -j ACCEPT [root@dee8225a9bba /]# iptables -A INPUT -s 132.97.0.0/16 -p tcp -m tcp --dport 8080 -j ACCEPT [root@dee8225a9bba /]# iptables -A INPUT -j DROP [root@dee8225a9bba /]# service iptables save iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ] [root@dee8225a9bba /]# service iptablse restart iptablse: unrecognized service [root@dee8225a9bba /]# service iptables restart iptables: Setting chains to policy ACCEPT: mangle nat filte[ OK ] iptables: Flushing firewall rules: [ OK ] iptables: Unloading modules: iptable_mangle iptable_nat ip[FAILED]lter iptable_mangle iptable_nat iptable_filter ip_tables iptables: Applying firewall rules: [ OK ] [root@dee8225a9bba /]#
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有