docker基础 1

docker有不变的好处

容器轻量级

vi /etc/sysctl.conf
[root@localhost ~]# sysctl -p
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-ip6tables = 1

镜像下载地址

https://hub.docker.com/

命令
docker search 镜像
docker pull 镜像

docker pull quay.io/coreos/flannel:v0.12.0-amd64
镜像地址 镜像名字 镜像版本、

加速器
dao云
https://www.daocloud.io/mirror
阿里云
https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

centos要用7版本
改名
docker tag centos:7 centos:latest

-i 交互
-t tti

进入容器下命令
yum provides ip
yum install iproute -y

docker attach test

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值