
Docker
Docker学习笔记。
yimtcode
这个作者很懒,什么都没留下…
展开
-
Docker 常用配置
修改完需要重启Docker。原创 2024-08-14 20:33:01 · 943 阅读 · 0 评论 -
Docker | 缓存依赖
Docker缓存项目依赖原创 2022-12-12 21:35:07 · 528 阅读 · 0 评论 -
Docker | COPY *只复制文件
COPY *会将当所有文件夹下文件,拷贝到镜像同一文件夹下,不会保留文件夹层级关系。将Dockerfile中。原创 2022-09-24 11:55:13 · 774 阅读 · 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 · 442 阅读 · 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 · 1204 阅读 · 0 评论