Docker
简介
部署
镜像管理
容器管理
自定义镜像
commit
Dockerfile
dockerfile创建yum镜像
dockerfile创建ssh镜像
dockerfile创建http镜像
自定义仓库
存储持久化
自定义网络
端口映射
本文档使用 MrDoc 发布
-
+
home page
commit
### 查看之前启动过的容器 ```asp docker ps -a ``` ```asp CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 2e0e34baceb8 centos:latest "/bin/bash" 19 hours ago Exited (0) About a minute ago frosty_robinson ``` ### 自定义打包 对修改过的容器进行重新封装 ```asp docker commit 2e0e34baceb8 myos:latest ``` ### 查看新打包的镜像 ```asp docker images ``` ```asp REPOSITORY TAG IMAGE ID CREATED SIZE myos latest 5b55591528a7 30 hours ago 301MB centos latest 5d0da3dc9764 2 years ago 231MB ``` ### 启动 ```asp docker run -it myos:latest ```
done
Oct. 10, 2023, 10:55 a.m.
转发文档
Collection documents
Last
Next
手机扫码
Copy link
手机扫一扫转发分享
Copy link
Markdown文件
share
link
type
password
Update password