摘要:
一、配置端口映射 (1)使用大写P将容器端口映射到宿主机的任意IP地址和任意端口 [root@centos01 ~]# docker run -it -d --name ssh -P hub.c.163.com/public/centos:6.7-tools (2)使用小写p将容器22端口映射到宿主 阅读全文
posted @ 2020-07-19 13:08
回忆的旋律
阅读(336)
评论(0)
推荐(0)
摘要:
一、创建docker容器 (1)docker容器常见的选项 -i:保持容器打开的状态 -t:分配一个伪终端 -d:后台运行 --name:指定容器的名字 (2)创建容器,容器的名字是centos01 [root@centos01 ~]# docker create -it --name centos 阅读全文
posted @ 2020-07-19 10:58
回忆的旋律
阅读(149)
评论(0)
推荐(0)
摘要:
一、安装docker和镜像基本的管理 添加NAT网卡,保证能上网: ping www.baidu.com 使用网络源: [root@centos01 yum.repos.d]# wget http://mirrors.aliyun.com/repo/Centos-7.repo 1、安装docker 阅读全文
posted @ 2020-07-19 10:41
回忆的旋律
阅读(154)
评论(0)
推荐(0)

浙公网安备 33010602011771号