摘要: 1.迁移与备份 容器保存为镜像:docker commit 容器名 镜像名 镜像备份:docker save -o 新镜像名(tar文件后缀名) 原镜像名 镜像恢复:docker load -i 文件名(tar文件后缀名) 2.Dockerfile (下面以安装JDK为例) 创建一个目录放置Dock 阅读全文
posted @ 2019-05-14 22:22 袋子里的袋鼠 阅读(747) 评论(0) 推荐(0) 编辑
摘要: 1.MySQL部署 拉取MySQL镜像:docker pull 镜像名 创建容器:docker run -id --name=容器名 -p 3306:33306 -e MYSQL_ROOT_PASSWORD=123456 镜像名 -e代表添加环境变量,MYSQL_ROOT_PASSWORD是用户ro 阅读全文
posted @ 2019-05-14 21:50 袋子里的袋鼠 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1.镜像相关命令 查看镜像:docker images 列出了所有顶层(top-level)镜像。实际上,在这里没有办法区分一个镜像和一个只读层,所以提出了top-level镜像。只有创建容器时使用的镜像或者是直接pull下来的镜像能被称为顶层(top-level) 镜像,并且每一个顶层镜像下面都隐 阅读全文
posted @ 2019-05-14 21:32 袋子里的袋鼠 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Docker和传统虚拟机区别 Docker Hub地址: https://hup.docker.com/ 官方推荐Ubuntu,CentOs使用7.0+ 否则无法更新补丁 systemctl系统服务管理器指令 启动:systemctl start docker 停止:systemctl stop d 阅读全文
posted @ 2019-05-14 20:17 袋子里的袋鼠 阅读(148) 评论(0) 推荐(0) 编辑
摘要: pom.xml加入JUnit包<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope></depende 阅读全文
posted @ 2019-05-14 09:08 袋子里的袋鼠 阅读(312) 评论(0) 推荐(0) 编辑