编写Dockerfile
1 | [root@aliyun docker_nginx]# ll # |
构建镜像
1 | [root@aliyun docker_nginx]# ll |
查看镜像
1 | [root@aliyun docker_nginx]# docker image ls |
启动容器
1 | [root@aliyun docker_nginx]# docker run -d -p 80:80 -p 443:443 --name nginx nginx:1.0 |
1 | [root@aliyun docker_nginx]# ll # |
1 | [root@aliyun docker_nginx]# ll |
1 | [root@aliyun docker_nginx]# docker image ls |
1 | [root@aliyun docker_nginx]# docker run -d -p 80:80 -p 443:443 --name nginx nginx:1.0 |