![](https://img-blog.csdnimg.cn/direct/8174efe2bb724000b8ded625268a55d4.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Docker
Docker学习笔记。
yimtcode
这个作者很懒,什么都没留下…
展开
-
Docker | 缓存依赖
Docker缓存项目依赖原创 2022-12-12 21:35:07 · 406 阅读 · 0 评论 -
Docker | COPY *只复制文件
COPY *会将当所有文件夹下文件,拷贝到镜像同一文件夹下,不会保留文件夹层级关系。将Dockerfile中。原创 2022-09-24 11:55:13 · 664 阅读 · 0 评论 -
Docker | 构建镜像
Docker | 构建镜像1. 修改已有镜像在ubuntu:22.04中添加Gitdocker run -it --name example ubuntu:22.04 bash## example容器内下面命令安装gitapt-get updateapt-get install git# 构建新镜像docker container commit example ubuntu-git:22.042. Dockerfile构建在ubuntu:22.04中添加GitDockerfile原创 2022-05-02 15:36:19 · 300 阅读 · 0 评论 -
Docker | 镜像分发
Docker | 镜像分发1. Docker Hub直接从镜像仓库拉取docker pull busybox:latest2. 文件共享镜像导出成文件# 拉取镜像docker pull busybox:latest# 保存镜像去文件docker save -o myfile.tar busybox:latest从文件中加载镜像docker load -i myfile.tar3. Dockerfile这里我们hello.sh理解为我们需要执行的程序。文件树example原创 2022-04-22 13:34:25 · 1125 阅读 · 0 评论