网桥实验 命令法 centos7配成网桥 eth0接入vmnet1 eth1接入vmnet8 yum -y install bridge-utils nmcli connection delete eth0 W brctl show #查看网桥 brctl addbr br0 brctl addif ...
分类:
其他好文 时间:
2021-05-23 23:06:42
阅读次数:
0
ssh基于key验证 1,在客户端生成公钥私钥对并将公钥拷到要连接的服务器上,验证是否成功 [root@localhost ~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the k ...
分类:
其他好文 时间:
2021-05-23 22:59:40
阅读次数:
0
1. mount namespace mount namespace 通过隔离文件系统挂载点对隔离文件系统提供支持。使用 unshare 构造 mount namespace 如下: root@chunqiu:~/chunqiu/docker/mount# dd if=/dev/zero bs=1M ...
分类:
其他好文 时间:
2021-05-23 22:54:53
阅读次数:
0
官网下载Jenkins https://www.jenkins.io/zh/download/ 构建jenkins镜像 # docker build -t jenkins:2.277.3 . from ubuntu:latest run sed -i 's/ports.ubuntu.com/mirr ...
分类:
其他好文 时间:
2021-05-04 16:25:44
阅读次数:
0
1. 安装 Use docker、package or source installations to install 第三方仓库 https://pkgs.org/download/haproxy 1.1 use docker docker run -it --rm haproxy:2.2 hap ...
分类:
其他好文 时间:
2021-05-04 16:22:39
阅读次数:
0
Ansible快速入门# 介绍# Ansible是一款简单的运维自动化工具,只需要使用ssh协议连接就可以来进行系统管理,自动化执行命令,部署等任务。 Ansible的特点 1、ansible不需要单独安装客户端,也不需要启动任何服务2、ansible是python中的一套完整的自动化执行任务模块3 ...
分类:
其他好文 时间:
2021-05-04 16:06:24
阅读次数:
0
安装docker sudo apt-get install docker.io 创建文件目录 mkdir docker-images 修改本地存储路径 # 查看服务状态 sudo systemctl status docker ● docker.service - Docker Applicatio ...
分类:
其他好文 时间:
2021-05-04 15:54:46
阅读次数:
0
安装镜像:docker pull 镜像名称 查看所有运行容器:docker ps -a 运行容器:docker run --name 容器名称 进入指定容器:docker exec -it 容器名称 bash 重启容器:docker restart 容器名称 停止所有容器:docker stop $ ...
分类:
其他好文 时间:
2021-05-04 15:53:31
阅读次数:
0
IDEA集成Docker部署微服务 回顾docker 。。 安装docker # 在192.168.204.141安装docker [root@A ~]# yum -y install docker # 启动docker [root@A ~]# systemctl start docker # 查看 ...
分类:
其他好文 时间:
2021-05-04 15:52:19
阅读次数:
0
Docker 四种网络模式 四种网络模式摘自 Docker 网络详解及 pipework 源码解读与实践 docker run 创建 Docker 容器时,可以用 --net 选项指定容器的网络模式,Docker 有以下 4 种网络模式: host 模式,使用 --net=host 指定。 cont ...
分类:
其他好文 时间:
2021-05-04 15:20:18
阅读次数:
0