1.1 快速上手
1.1.1 准备代码
<h1>Hello, Docker!</h1>1.1.2 编写 Dockerfile
FROM nginx:alpine
COPY index.html /usr/share/nginx/html/index.html1.1.3 构建镜像
$ docker build -t my-hello-world .1.1.4 运行容器
1.1.5 访问测试
1.1.6 清理
最后更新于