docker ps //找到容器ID docker exec -it 612933b2778c bash //进入docker容器 root@612933b2778c:/# echo '<h1>hello docker</h1>' > /usr/share/nginx/html/index.html //进入容器将数据重新写入到index.html