摘要: 打包镜像 docker save -o redis.tar 镜像id 加载镜像 docker load -i redis.tar 阅读全文
posted @ 2021-12-07 19:21 博客园197 阅读(135) 评论(0) 推荐(0) 编辑
摘要: docker pull registry:2.6 客户端配置 vi /etc/docker/daemon.json { "insecure-registries": [ "ip:5000" ] } 需要重启客户端 systemctl restart docker mkdir -p /etc/dock 阅读全文
posted @ 2021-12-07 19:18 博客园197 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 1. 上传镜像文件到本地目录 这里以CentOS-7-x86_64-Everything-1503-01.iso为例 2. 创建镜像挂载目录 mkdir -p /media/CentOS73. 挂载镜像文件mount -t iso9660 -o loop /usr/local/src/CentOS- 阅读全文
posted @ 2021-12-07 14:01 博客园197 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 查看系统中有哪些用户: cut -d : -f 1 /etc/passwd 查看可以登录系统的用户: cat /etc/passwd | grep -v /sbin/nologin | cut -d : -f 1 查看某一用户: w 用户名 查看登录用户: who 查看用户登录历史记录: last 阅读全文
posted @ 2021-12-07 08:59 博客园197 阅读(23) 评论(0) 推荐(0) 编辑