![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
docker
rain_vigour
享受技术
展开
-
docker搭建redis集群部署
创建网络 主要是用于redis集群能与外界进行网络通信 docker network create redis --subnet 172.38.0.0/16 创建redis配置文件 #!/bin/bash BASEDIR=$(cd "$(dirname "$0")";pwd) echo ${BASEDIR} for port in $(seq 1 6);\ do \ mkdir -p ${BASEDIR}/node-${port}/{conf,data} touch ${BASEDIR}/node-${p原创 2021-07-25 15:56:37 · 111 阅读 · 1 评论 -
docker相关操作
一 镜像相关命令 # 1. 查看镜像 docker images REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest d1165f221234 3 months ago 13.3kB REPOSITORY 镜像源称 TAG 标签 IMAGE ID 镜像ID CREATED 创建时间 SIZE 大小 # 2. 查看所有镜像I原创 2021-07-25 15:33:59 · 48 阅读 · 0 评论 -
docker镜像与容器的基本命令
一 镜像相关命令 # 1. 查看镜像 docker images REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest d1165f221234 3 months ago 13.3kB REPOSITORY 镜像源称 TAG 标签 IMAGE ID 镜像ID CREATED 创建时间 SIZE 大小 # 2. 查看所有镜像I原创 2021-07-03 16:17:56 · 46 阅读 · 0 评论 -
docker镜像制作
1. 下载centos镜像 docker pull centos 2. 进入镜像 docker run -it centos bash 3. 进入镜像源 cd /etc/yum.repos.d rm -fr * 4. 更新镜像源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7....原创 2019-08-26 01:27:14 · 99 阅读 · 0 评论 -
centos7安装docker
下载 yum install docker -y 设置开机自启动 systemctl enable docker 更改docker镜像源 vim /usr/lib/systemd/system/docker.service https://cr.console.aliyun.com获取阿里云加速器可以提升Docker官方镜像的速度 复制加速地址替换红色部分 systemctl daemo...原创 2019-08-22 01:37:59 · 154 阅读 · 0 评论 -
docker容器操作
1.下载镜像docker pull *** docker pull nginx 2. 查看本机拥有的镜像 docker images 3. 导出文件 docker save nginx >/tmp/ 4. 删除容器的文件操作 docker rmi nginx 5. 导入 docker load < /tmp 6. 查询 docker search nginx 7. 运行镜像...原创 2019-08-23 02:15:54 · 143 阅读 · 0 评论