检查是否开启
sudo service docker status
开启服务
sudo service docker start
运行服务
sudo docker run -itd -p 8080:80 nginx
查询ID
docker ps -all
进入容器shell
sudo docker exec -it <容器ID或容器名称> /bin/bash
找到/usr/share/nginx/html/index.html文件
编辑
完成文章来源:https://uudwc.com/A/y5pAm
文章来源地址https://uudwc.com/A/y5pAm