标签:aliyun blog image container lrzsz ror top less pen
# 1. 拉取centos7镜像 docker pull centos:7 # 2. 启动镜像centos7,如果不指定 /bin/bash,容器运行后会自动停止 docker run -d -i -t <IMAGE ID> /bin/bash # 3. 进入容器 docker exec -it <CONTAINER ID> bash # 4. 进入后发现没有ifconfig,直接yum安装 yum install -y net-tools
yum install -y wget wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo yum install -y openssh-clients nc mysql lrzsz htop less yum install -y mysql
ref: https://blog.csdn.net/marke_huang/article/details/82996909
标签:aliyun blog image container lrzsz ror top less pen
原文地址:https://www.cnblogs.com/chenzechao/p/13276908.html