Commit 4428e8c5 by Zeng Rixuan

no message

parent c9f5a0d9
1111
\ No newline at end of file
# Docker学习记录
基础:Linux、springboot
​ 对于spring、springboot并不了解
## Docker学习框架
### Docker概述
官网地址:[Empowering App Development for Developers | Docker](https://www.docker.com/)
文档地址:[Docker Documentation | Docker Documentation](https://docs.docker.com/)
​ docker的文档超级详细
仓库地址:[Docker Hub Container Image Library | App Containerization](https://hub.docker.com/)
目的:发布一个项目,该项目连同环境安装一起打包,便于环境配置和开发-运维。
​ 开发、打包、部署、上线一并完成。更便捷地升级和扩容。
容器化技术不是模拟一个完整的操作系统
Docker和传统虚拟机技术的不同:
- 传统虚拟机,虚拟出硬件,运行完整的操作系统,然后在这个系统上安装运行软件。
- 容器内的应用直接运行在宿主机的内容,容器没有自己的内核,利用数据内核,也没有虚拟硬件。所以轻便。
- 每个容器间相互隔离,每个容器内都有属于自己的文件系统,互不影响。
Docker的基本组成
![img](README.assets/src=http-%2F%2Fimg2018.cnblogs.com%2Fblog%2F1079834%2F201812%2F1079834-20181224102341574-1775152914.png&refer=http-%2F%2Fimg2018.cnblogs.jpg)
**镜像(image):**
​ docker的镜像好比一个模板,可以通过这个模板来创建容器服务,tomcat镜像===>run===>tomcat01容器,通过这个镜像可以创建多个容器(最终服务运行或者项目运行就这容器中)
**容器(container):**
​ Docker利用容器技术,独立运行一个或者一组应用,通过镜像来创建。可以把容器简单理解为一个简易的Linux系统。
启动、停止、删除、以及基本命令
**仓库(repository):**
​ 仓库就是存放镜像的地方,分为共有仓库和私有仓库
### Docker安装
帮助文档:[Get Docker | Docker Documentation](https://docs.docker.com/get-docker/)
ubunt版本安装:[Install Docker Engine on Ubuntu | Docker Documentation](https://docs.docker.com/engine/install/ubuntu/)
​ 安装完毕后,通过 `docker version`查看版本信息
![1638843310116](README.assets/1638843310116.png)
​ 通过 `docker images`查看镜像是否成功下载
![1638843388118](README.assets/1638843388118.png)
​ 通过 `docker run hello-world` 测试![1638845046056](README.assets/1638845046056.png)
### Docker底层原理
**docker run的运行原理**
![1638845283206](README.assets/1638845283206.png)
### Docker命令
#### 镜像命令
docker images:查看本地主机镜像
```shell
root@lkt-VirtualBox:~# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello-world latest feb5d9fea6a5 2 months ago 13.3kB
#镜像的仓库源 标签 镜像的ID 创建时间 大小
# -a 显示所有镜像 -q 只显示镜像的ID
```
docker search :搜索镜像
#### 容器命令
#### 操作命令
### Docker镜像
### 容器数据卷
### DockerFile构建镜像
### Docker网络原理
### IDEA整合Docker
### Docker Compose (集群)
### Docker Swarm (管理)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment